From 2e15f01196470c141a97f8176792ce5d0d83a077 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 4 Feb 2018 00:04:13 -0800 Subject: [PATCH] shlib.sh: check_and_set_head quietly When looking for valid HEADs, suppress the output of the hash value which a match is found for "well-known" HEAD names. Signed-off-by: Kyle J. McKay --- shlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shlib.sh b/shlib.sh index 6536eea..8f12ba4 100644 --- a/shlib.sh +++ b/shlib.sh @@ -730,7 +730,7 @@ check_and_set_head() { return 0 fi for _hr in refs/heads/master refs/heads/trunk; do - if git rev-parse --verify --quiet "$_hr"; then + if git rev-parse --verify --quiet "$_hr" >/dev/null; then _update_head_symref "$_hr" return 0 fi -- 2.11.4.GIT