simonthum/git-sync — pull request #5 by boombatower (2014-10-08 08:29:33+00:00)
Title: Add $branch_name to `git fetch` to ensure extraneous branches are not fetched

A project I am working has a number of other branches besides the branch that is being synced using `git-sync`. Currently, all the other branches are needlessly fetched as soon as git fetch is run since it only includes the origin and not the specific branch. Assuming the repository was clone with `--branch` or has never had other branches fetched the data will not have been pulled, but git-sync insists on doing so.

This pull request simply adds the `$branch_name` to the `git fetch` call to ensure only the branch being synced is fetched.