From: Miklos Vajna Date: Wed, 3 Dec 2008 13:26:52 +0000 (+0100) Subject: submodule: use git rev-parse -q X-Git-Tag: v1.6.1-rc2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=30353a40f7ca2f09e61013609f4847461b4544b7;p=git.git submodule: use git rev-parse -q Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- diff --git a/git-submodule.sh b/git-submodule.sh index 220d94ec0..2f47e065f 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -413,7 +413,7 @@ cmd_summary() { test $summary_limit = 0 && return - if rev=$(git rev-parse --verify "$1^0" 2>/dev/null) + if rev=$(git rev-parse -q --verify "$1^0") then head=$rev shift @@ -464,11 +464,11 @@ cmd_summary() { missing_dst= test $mod_src = 160000 && - ! GIT_DIR="$name/.git" git-rev-parse --verify $sha1_src^0 >/dev/null 2>&1 && + ! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_src^0 >/dev/null && missing_src=t test $mod_dst = 160000 && - ! GIT_DIR="$name/.git" git-rev-parse --verify $sha1_dst^0 >/dev/null 2>&1 && + ! GIT_DIR="$name/.git" git-rev-parse -q --verify $sha1_dst^0 >/dev/null && missing_dst=t total_commits=