summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5b9e6c)
raw | patch | inline | side by side (parent: d5b9e6c)
author | Sergey Vlasov <vsu@altlinux.ru> | |
Fri, 14 Jul 2006 15:06:57 +0000 (19:06 +0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 14 Jul 2006 18:33:14 +0000 (11:33 -0700) |
After commit 55b7835e1b81a6debc7648149d2b8a4c5c64ddba git-fetch --tags
exits with status 1 when no tags have been changed, which breaks calling
git-fetch from scripts.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
exits with status 1 when no tags have been changed, which breaks calling
git-fetch from scripts.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
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 ff1769952b704d3ee3123395274da76e8f09a373..ee99280a2ab3abdcc340d66661747968a60c84ec 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
then
if now_=$(cat "$GIT_DIR/$1") && test "$now_" = "$2"
then
- [ "$verbose" ] && echo >&2 "* $1: same as $3"
+ [ "$verbose" ] && echo >&2 "* $1: same as $3" ||:
else
echo >&2 "* $1: updating with $3"
git-update-ref -m "$rloga: updating tag" "$1" "$2"