Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Fix fetching of tags.
author
Junio C Hamano
<junkio@cox.net>
Thu, 25 Aug 2005 05:46:07 +0000
(22:46 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 25 Aug 2005 05:46:07 +0000
(22:46 -0700)
"git fetch tag <tag>" stored a tag after dereferencing. Bad.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch-script
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3857284
)
diff --git
a/git-fetch-script
b/git-fetch-script
index d55cc85620e5952d5172ce1e9128a0168f19b921..b581dc4cd6fa7fe6406cf3b1e1e142118a52b00b 100755
(executable)
--- 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_"
+ head
c
_=$(git-rev-parse --verify "$head_^0") || exit
+ note_="$head
c_
$remote_name_ from $remote_nick_"
echo "$note_" >>$GIT_DIR/FETCH_HEAD
echo >&2 "* committish: $note_"
else