diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 5d83c4b5a3..a0c6dcd210 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