提交 8572aa85 编写于 作者: J Junio C Hamano

Fix fetching of tags.

"git fetch tag <tag>" stored a tag after dereferencing.  Bad.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 3857284f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册