aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-22 09:04:17 -0700
committerAdam Vandenberg2010-10-06 08:02:17 -0700
commit337456ca90296701cd7ee9fe7798ce167361975a (patch)
treebe6717d3059bb6ab292a555bc3172bf2d6a06afb /bin
parent9e1470684f671269a785fccccd3b87fc75c81ecf (diff)
downloadbrew-337456ca90296701cd7ee9fe7798ce167361975a.tar.bz2
Tweak display of missing sha
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 2fe06f3c6..f33717f0b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -41,6 +41,7 @@ end
def dump_config
require 'hardware'
sha = `cd #{HOMEBREW_REPOSITORY} && git rev-parse --verify HEAD 2> /dev/null`.chomp
+ sha = "(none)" if sha.empty?
bits = Hardware.bits
cores = Hardware.cores_as_words
kernel_arch = `uname -m`.chomp