update: make git pull update origin/master

Specify the refspec 'refs/heads/master:refs/remotes/origin/master' so
that the remote-tracking branch origin/master gets update during `brew
update` (git-pull updates remote-tracking branches when invoked
like `git pull` or `git pull origin`, but not `git pull origin master`).

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-08-30 00:41:51 -05:00
parent 3b689db6d3
commit 54e7eb3b90

View File

@ -49,7 +49,8 @@ class RefreshBrew
raise
end
end
execute "git pull origin master"
# specify a refspec so that 'origin/master' gets updated
execute "git pull origin refs/heads/master:refs/remotes/origin/master"
@current_revision = read_revision
end