aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2012-03-22 18:22:19 -0500
committerJack Nagel2012-03-22 22:15:57 -0500
commita58497368b3a6b73fc8f6d6d0c51c19b5fe7df51 (patch)
tree6922aa91c5c6d720f95aed9067e6f191e73bba2b /Library/Homebrew/cmd
parent31faf916d4f9a156a76e488fc3e20fc2a6e0684c (diff)
downloadhomebrew-a58497368b3a6b73fc8f6d6d0c51c19b5fe7df51.tar.bz2
Use --verify when querying HEAD
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/update.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index 383c0121f..e3e25c01e 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -97,7 +97,7 @@ class Updater
private
def read_current_revision
- `git rev-parse HEAD`.chomp
+ `git rev-parse -q --verify HEAD`.chomp
end
def `(cmd)