commit 6d4d72f4c639f337f1d8b6687dcede2c6ebe5ed4 from: Benjamin Stürz date: Thu Dec 28 00:32:36 2023 UTC Don't print an error when there are not tags commit - edeab4fbc07a7b4862dced73b0a64f11c3a76c73 commit + 6d4d72f4c639f337f1d8b6687dcede2c6ebe5ed4 blob - ccf73d36104ef9920a02a6202caee0d5d8c0cf5f blob + e887002dc823ef63f544144c25b3fda42642098c --- got-archive +++ got-archive @@ -83,7 +83,7 @@ if [ "$all" = 1 ]; then [ $# -ne 0 ] && die 1 "Error: Can't combine -a and explicit refs" tags=$(find "$repo/refs/tags" -type f -exec basename {} \; 2>/dev/null) - [ $? -ne 0 ] && die 5 "Error: $name: no tags found" + [ $? -ne 0 ] && exit 0 set -- $tags fi