aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 9d826be95..0c2bc4b00 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -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