aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-12-02 13:07:20 +0000
committerMax Howell2009-12-02 13:07:20 +0000
commitfb9c8cc7070ab574022bbbc3814f85c71ef845b3 (patch)
tree724c54236e52eeb28d60a4f18f444d37ac181eb7
parenta997d2c4a512e0ad08d51768dbeb1550e4d3d0ea (diff)
downloadhomebrew-fb9c8cc7070ab574022bbbc3814f85c71ef845b3.tar.bz2
cd HOMEBREW_REPOSITORY before trying to git info it
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index a3a65ebdc..749269279 100755
--- a/bin/brew
+++ b/bin/brew
@@ -47,7 +47,7 @@ def dump_config
cores = Hardware.cores_as_words
llvm = llvm_build
gcc = gcc_build
- sha = `git rev-parse --verify HEAD`.chomp
+ sha = `cd #{HOMEBREW_REPOSITORY} && git rev-parse --verify HEAD 2> /dev/null`.chomp
kernel_arch = `uname -m`.chomp
puts <<-EOS