Skip to content

Commit f62e0a3

Browse files
jrngitster
authored andcommitted
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 <[email protected]> for the report. Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 03aa87e commit f62e0a3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

t/t5704-bundle.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,20 @@ test_expect_success 'tags can be excluded by rev-list options' '
3030
3131
'
3232

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+
3349
test_done

0 commit comments

Comments
 (0)