diff options
| author | Mike McQuaid | 2016-08-17 08:35:35 +0100 |
|---|---|---|
| committer | GitHub | 2016-08-17 08:35:35 +0100 |
| commit | daae44e1908d66cbc6d31e568d3e57bf0c7a2dcc (patch) | |
| tree | 6d4ecc5cb863dcff4fb38630bbe4309b6ec0f7d8 | |
| parent | 2ab5c77d0ca82581658370ac899a8464a70ec159 (diff) | |
| parent | 739881b482bf3b7219a141ef9ec5b756d482b93a (diff) | |
| download | brew-daae44e1908d66cbc6d31e568d3e57bf0c7a2dcc.tar.bz2 | |
Merge pull request #723 from MikeMcQuaid/diagnostic-HEAD
diagnostic: don't barf if HEAD is also a file.
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 2 |
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 |
