Tweak display of missing sha

This commit is contained in:
Adam Vandenberg 2010-09-22 09:04:17 -07:00
parent 9e1470684f
commit 337456ca90

View File

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