git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Added a test for fetching remote tags when there is not tags.
@ 2007-10-09  8:51 Väinö Järvelä
  2007-10-09  8:51 ` [PATCH] Fixed crash in " Väinö Järvelä
  0 siblings, 1 reply; 10+ messages in thread
From: Väinö Järvelä @ 2007-10-09  8:51 UTC (permalink / raw)
  To: git; +Cc: gitster, Väinö Järvelä

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>
---
 t/t5510-fetch.sh |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index 73a4e3c..40ebf2e 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" &&
-- 
1.5.3.4.1156.g5407-dirty

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-14 21:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09  8:51 [PATCH] Added a test for fetching remote tags when there is not tags Väinö Järvelä
2007-10-09  8:51 ` [PATCH] Fixed crash in " Väinö Järvelä
2007-10-09 10:52   ` Väinö Järvelä
2007-10-09 18:20     ` Alex Riesen
2007-10-10  5:10       ` Jeff King
2007-10-10 21:27         ` Alex Riesen
2007-10-10 21:33           ` Jeff King
2007-10-12  4:07           ` Shawn O. Pearce
2007-10-12 20:40             ` [PATCH] Fix a crash in ls-remote when refspec expands into nothing Alex Riesen
2007-10-14 21:26               ` Lars Hjemli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).