aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-22 09:04:17 -0700
committerAdam Vandenberg2010-10-06 08:02:17 -0700
commit98a9225dd5304286b3cca92a3ea5e7f235ccf872 (patch)
tree1f90b3b7080f775e412c32a89e33130aa29b5740
parentcd48f0d652b075c683b6e5e2cd3e0662d18096b4 (diff)
downloadhomebrew-98a9225dd5304286b3cca92a3ea5e7f235ccf872.tar.bz2
Tweak display of missing sha
-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