From: Junio C Hamano Date: Thu, 25 Aug 2005 05:46:07 +0000 (-0700) Subject: Fix fetching of tags. X-Git-Tag: v0.99.6~95 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8572aa85a7f1e9377f44b816788ced4306cf427b;p=git.git Fix fetching of tags. "git fetch tag " stored a tag after dereferencing. Bad. Signed-off-by: Junio C Hamano --- diff --git a/git-fetch-script b/git-fetch-script index d55cc8562..b581dc4cd 100755 --- a/git-fetch-script +++ b/git-fetch-script @@ -53,8 +53,8 @@ append_fetch_head () { # 2.6.11-tree tag would not be happy to be fed to resolve. if git-cat-file commit "$head_" >/dev/null 2>&1 then - head_=$(git-rev-parse --verify "$head_^0") || exit - note_="$head_ $remote_name_ from $remote_nick_" + headc_=$(git-rev-parse --verify "$head_^0") || exit + note_="$headc_ $remote_name_ from $remote_nick_" echo "$note_" >>$GIT_DIR/FETCH_HEAD echo >&2 "* committish: $note_" else