@matheusbsbs / matheus-bagliano / commits / f539d0d6c1
Fork 0

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ä <v@pp.inet.fi> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Väinö Järvelä committed Oct 9, 2007 at 11:51 UTC f539d0d6c1f0b4431c0711e290d1f5a7205ed6e6
1 file changed +12
t/t5510-fetch.sh
+12
@@ -67,6 +67,18 @@ test_expect_success "fetch test for-merge" '
67 cut -f -2 .git/FETCH_HEAD >actual &&
68 diff expected actual'
69
70 +test_expect_success 'fetch tags when there is no tags' '
71 +
72 + cd "$D" &&
73 +
74 + mkdir notags &&
75 + cd notags &&
76 + git init &&
77 +
78 + git fetch -t ..
79 +
80 +'
81 +
82 test_expect_success 'fetch following tags' '
83
84 cd "$D" &&