t5704 (bundle): add tests for bundle --stdin
As long as no rev-list arguments are supplied on the command line, git bundle create --stdin currently segfaults. With added rev-list arguments, it does not segfault, but the revisions from stdin are ignored. Thanks to Joey Hess <joey@kitenet.net> for the report. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Apr 19, 2010 at 03:03 UTC
f62e0a39b69c2752b92f01bb05a6676639f46a65
1 file changed
+16
t/t5704-bundle.sh
+16
@@ -30,4 +30,20 @@ test_expect_success 'tags can be excluded by rev-list options' '
30
31
'
32
33
+test_expect_failure 'bundle --stdin' '
34
+
35
+ echo master | git bundle create stdin-bundle.bdl --stdin &&
36
+ git ls-remote stdin-bundle.bdl >output &&
37
+ grep master output
38
+
39
+'
40
+
41
+test_expect_failure 'bundle --stdin <rev-list options>' '
42
+
43
+ echo master | git bundle create hybrid-bundle.bdl --stdin tag &&
44
+ git ls-remote hybrid-bundle.bdl >output &&
45
+ grep master output
46
+
47
+'
48
+
49
test_done