From: Miklos Vajna Date: Wed, 3 Dec 2008 13:26:50 +0000 (+0100) Subject: pull: use git rev-parse -q X-Git-Tag: v1.6.1-rc2~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2d17985782256d3505791a814b16e4e772fd341f;p=git.git pull: use git rev-parse -q Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- diff --git a/git-pull.sh b/git-pull.sh index 1cac898a2..2c7f432dc 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -121,13 +121,13 @@ test true = "$rebase" && { test -z "$origin" && origin=$(get_default_remote) reflist="$(get_remote_refs_for_fetch "$@" 2>/dev/null | sed "s|refs/heads/\(.*\):|\1|")" && - oldremoteref="$(git rev-parse --verify \ - "refs/remotes/$origin/$reflist" 2>/dev/null)" + oldremoteref="$(git rev-parse -q --verify \ + "refs/remotes/$origin/$reflist")" } -orig_head=$(git rev-parse --verify HEAD 2>/dev/null) +orig_head=$(git rev-parse -q --verify HEAD) git fetch $verbosity --update-head-ok "$@" || exit 1 -curr_head=$(git rev-parse --verify HEAD 2>/dev/null) +curr_head=$(git rev-parse -q --verify HEAD) if test -n "$orig_head" && test "$curr_head" != "$orig_head" then # The fetch involved updating the current branch.