From: Väinö Järvelä Date: Tue, 9 Oct 2007 08:51:07 +0000 (+0300) Subject: Added a test for fetching remote tags when there is not tags. X-Git-Tag: v1.5.4-rc0~292^2~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f539d0d6c1f0b4431c0711e290d1f5a7205ed6e6;p=git.git Added a test for fetching remote tags when there is not tags. When a user runs "git fetch -t", git crashes when it doesn't find any tags on the remote repository. Signed-off-by: Väinö Järvelä Signed-off-by: Lars Hjemli Signed-off-by: Shawn O. Pearce --- diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 73a4e3cbc..40ebf2e2b 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -67,6 +67,18 @@ test_expect_success "fetch test for-merge" ' cut -f -2 .git/FETCH_HEAD >actual && diff expected actual' +test_expect_success 'fetch tags when there is no tags' ' + + cd "$D" && + + mkdir notags && + cd notags && + git init && + + git fetch -t .. + +' + test_expect_success 'fetch following tags' ' cd "$D" &&