diff options
| author | Max Howell | 2009-11-05 23:36:51 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:36 +0000 |
| commit | 57fc32d27927503d8eb379e2907c42933f8732f1 (patch) | |
| tree | 57219c47e73aabbc1126216e9664886aba3026f0 | |
| parent | 96de6ba870875e77c626e9bf7f1bde547adcb84b (diff) | |
| download | brew-57fc32d27927503d8eb379e2907c42933f8732f1.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.
| -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 |
