diff options
| author | Kevin Ballard | 2014-10-27 15:20:46 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-10-28 08:26:20 +0000 |
| commit | e7edce995f287076579354712a0a3dfc9d88571c (patch) | |
| tree | a642f7685e3f3596d4a80bb5e9bd4d6c9921ab93 /Library | |
| parent | a418885e018737dc734a1fe36607cf11a360032d (diff) | |
| download | homebrew-e7edce995f287076579354712a0a3dfc9d88571c.tar.bz2 | |
fish: disable shallow cloning for HEAD.
fish needs a deep clone in order to calculate its version. With the
shallow clone, the version is left as "unknown".
Also set GIT_DIR so fish can actually see the git history.
Closes #33655.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fish.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Formula/fish.rb b/Library/Formula/fish.rb index 51e9995b7..e7eea626e 100644 --- a/Library/Formula/fish.rb +++ b/Library/Formula/fish.rb @@ -12,7 +12,7 @@ class Fish < Formula end head do - url "https://github.com/fish-shell/fish-shell.git" + url "https://github.com/fish-shell/fish-shell.git", :shallow => false depends_on :autoconf # Indeed, the head build always builds documentation @@ -22,7 +22,10 @@ class Fish < Formula skip_clean "share/doc" def install - system "autoconf" if build.head? + if build.head? + ENV['GIT_DIR'] = cached_download/'.git' + system "autoconf" + end # In Homebrew's 'superenv' sed's path will be incompatible, so # the correct path is passed into configure here. system "./configure", "--prefix=#{prefix}", "SED=/usr/bin/sed" |
