aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.rb
diff options
context:
space:
mode:
authorJack Nagel2012-03-22 18:22:19 -0500
committerJack Nagel2012-03-22 22:15:57 -0500
commit10f8443f8ae9f008c2bc45b0e80bcbb2f6419806 (patch)
tree8b30763b2b50dd981e0ebb4779669cf9f99cf880 /Library/Homebrew/cmd/update.rb
parentbb8d92c3cf360a91688e943ceb5151366fe7af52 (diff)
downloadbrew-10f8443f8ae9f008c2bc45b0e80bcbb2f6419806.tar.bz2
Use --verify when querying HEAD
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/update.rb')
-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)