aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-08-16 14:31:50 +0100
committerMike McQuaid2016-08-16 14:31:50 +0100
commit739881b482bf3b7219a141ef9ec5b756d482b93a (patch)
treec5a66ec72f6d75ea46516bfe21c6cff3f6100670 /Library
parent984ed836bd803e872a14cd32be5b0690a635274f (diff)
downloadbrew-739881b482bf3b7219a141ef9ec5b756d482b93a.tar.bz2
diagnostic: don't barf if HEAD is also a file.
Closes #694.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/diagnostic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 5d83c4b5a..a0c6dcd21 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -1010,7 +1010,7 @@ module Homebrew
return unless Utils.git_available?
timestamp = if File.directory?("#{HOMEBREW_REPOSITORY}/.git")
- HOMEBREW_REPOSITORY.cd { `git log -1 --format="%ct" HEAD`.to_i }
+ HOMEBREW_REPOSITORY.cd { `git log -1 --format="%ct" HEAD --`.to_i }
else
HOMEBREW_LIBRARY.mtime.to_i
end