From 4df283c93cbe5b8b99d683f0a56885d29b544a20 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 28 Jul 2014 18:33:48 +0400 Subject: [PATCH] Use git rev-parse instead of git show-ref --- add-pubkey/post-checkout | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/add-pubkey/post-checkout b/add-pubkey/post-checkout index ae91c71..bf63ef0 100755 --- a/add-pubkey/post-checkout +++ b/add-pubkey/post-checkout @@ -8,8 +8,7 @@ new_HEAD="$2" new_branch="$3" if [ \( "$new_branch" = 1 \) ]; then - phd_pubkey_HEAD="`git show-ref --hash refs/heads/phd-pubkey`" - if [ "$new_HEAD" = "$phd_pubkey_HEAD" ]; then + if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then git clean -d -f -q else python2.7 -m compileall -q . && -- 2.39.2