aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2009-11-05 23:36:51 +0000
committerMax Howell2009-11-07 18:22:36 +0000
commit98984e1b6b68c25bbf34cba8fd49403941ce2bab (patch)
treee403426b65ff10bd874efeb06119d06bf4477223 /Library/Homebrew
parent12507b88af13a47fa622efe69c7632e9935767d4 (diff)
downloadhomebrew-98984e1b6b68c25bbf34cba8fd49403941ce2bab.tar.bz2
Solve the brew install, brew rm, brew install problem for HEAD formula
The problem was that git checkout -b doesn't work the second time. This simple solution works by never creating a local branch.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index deb5d1762..56012e185 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -150,7 +150,7 @@ class GitDownloadStrategy <AbstractDownloadStrategy
ohai "Checking out #{@spec} #{@ref}"
case @spec
when :branch
- safe_system 'git', 'checkout', '-b', @ref, "origin/#{@ref}"
+ safe_system 'git', 'checkout', "origin/#{@ref}"
when :tag
safe_system 'git', 'checkout', @ref
end