cd HOMEBREW_REPOSITORY before trying to git info it

This commit is contained in:
Max Howell 2009-12-02 13:07:20 +00:00
parent dd0df9bd37
commit b70367fa96

View File

@ -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