summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: acb39f6)
raw | patch | inline | side by side (parent: acb39f6)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 11 Feb 2007 21:41:23 +0000 (13:41 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 13 Feb 2007 07:31:00 +0000 (23:31 -0800) |
Use the same --exclude-existing filter as we use for automatic
tag following to avoid overwriting existing tags with replacement
ones the other side created.
Signed-off-by: Junio C Hamano <junkio@cox.net>
tag following to avoid overwriting existing tags with replacement
ones the other side created.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh | patch | blob | history |
diff --git a/git-fetch.sh b/git-fetch.sh
index 357cac28b2e44abb8356368761be78b378e5ae2e..ca984e739a595131dca4070982f524d3a53f9637 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
then
taglist=`IFS=' ' &&
echo "$ls_remote_result" |
+ git-show-ref --exclude-existing=refs/tags/ |
while read sha1 name
do
- case "$sha1" in
- fail)
- exit 1
- esac
- case "$name" in
- *^*) continue ;;
- refs/tags/*) ;;
- *) continue ;;
- esac
- if git-check-ref-format "$name"
- then
- echo ".${name}:${name}"
- else
- echo >&2 "warning: tag ${name} ignored"
- fi
+ echo ".${name}:${name}"
done` || exit
if test "$#" -gt 1
then