Skip to content

Commit

Permalink
submodule: use git rev-parse -q
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Dec 3, 2008
1 parent 5a92d19 commit 30353a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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=
Expand Down

0 comments on commit 30353a4

Please sign in to comment.