{"thread":{"id":"4886","subject":"[PATCH] Fix \"git-fetch --tags\" exit status when nothing has been changed","startedAt":"2006-07-14T15:06:57Z","lastAt":"2006-07-14T15:06:57Z","messageCount":1,"participants":["Sergey Vlasov"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"23817","messageId":"11528896171250-git-send-email-vsu@altlinux.ru","threadId":"4886","inReplyTo":null,"subject":"[PATCH] Fix \"git-fetch --tags\" exit status when nothing has been changed","fromName":"Sergey Vlasov","fromEmail":"vsu@altlinux.ru","sentAt":"2006-07-14T15:06:57Z","receivedAt":"2006-07-14T15:06:57Z","isPatch":true,"sender":{"key":"vsu@altlinux.ru","avatar":"https://avatars.githubusercontent.com/u/616082?v=4"},"body":"After commit 55b7835e1b81a6debc7648149d2b8a4c5c64ddba git-fetch --tags\nexits with status 1 when no tags have been changed, which breaks calling\ngit-fetch from scripts.\n\nSigned-off-by: Sergey Vlasov <vsu@altlinux.ru>\n---\n git-fetch.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-fetch.sh b/git-fetch.sh\nindex ff17699..ee99280 100755\n--- a/git-fetch.sh\n+++ b/git-fetch.sh\n@@ -153,7 +153,7 @@ fast_forward_local () {\n \tthen\n \t\tif now_=$(cat \"$GIT_DIR/$1\") && test \"$now_\" = \"$2\"\n \t\tthen\n-\t\t\t[ \"$verbose\" ] && echo >&2 \"* $1: same as $3\"\n+\t\t\t[ \"$verbose\" ] && echo >&2 \"* $1: same as $3\" ||:\n \t\telse\n \t\t\techo >&2 \"* $1: updating with $3\"\n \t\t\tgit-update-ref -m \"$rloga: updating tag\" \"$1\" \"$2\"\n-- \n1.4.1.ga319\n"}]}