diff options
| author | Max Howell | 2009-11-05 23:36:51 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:36 +0000 |
| commit | 98984e1b6b68c25bbf34cba8fd49403941ce2bab (patch) | |
| tree | e403426b65ff10bd874efeb06119d06bf4477223 /Library/Homebrew | |
| parent | 12507b88af13a47fa622efe69c7632e9935767d4 (diff) | |
| download | homebrew-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.rb | 2 |
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 |
