aboutsummaryrefslogtreecommitdiff
path: root/t/t5510-fetch.sh
diff options
context:
space:
mode:
authorVäinö Järvelä <v@pp.inet.fi>2007-10-09 11:51:07 +0300
committerShawn O. Pearce <spearce@spearce.org>2007-10-15 20:40:51 -0400
commitf539d0d6c1f0b4431c0711e290d1f5a7205ed6e6 (patch)
tree6aaabba66f354847ac9860c9af6c0e708ba1d57a /t/t5510-fetch.sh
parent8f70a7657a9b459d6a4a3bcb1628c0fa6a6c22e0 (diff)
downloadgit-f539d0d6c1f0b4431c0711e290d1f5a7205ed6e6.tar.gz
git-f539d0d6c1f0b4431c0711e290d1f5a7205ed6e6.tar.xz
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>
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-xt/t5510-fetch.sh12
1 files changed, 12 insertions, 0 deletions
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" &&