mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
03aa87ed99
commit
f62e0a39b6
|
@ -30,4 +30,20 @@ test_expect_success 'tags can be excluded by rev-list options' '
|
|||
|
||||
'
|
||||
|
||||
test_expect_failure 'bundle --stdin' '
|
||||
|
||||
echo master | git bundle create stdin-bundle.bdl --stdin &&
|
||||
git ls-remote stdin-bundle.bdl >output &&
|
||||
grep master output
|
||||
|
||||
'
|
||||
|
||||
test_expect_failure 'bundle --stdin <rev-list options>' '
|
||||
|
||||
echo master | git bundle create hybrid-bundle.bdl --stdin tag &&
|
||||
git ls-remote hybrid-bundle.bdl >output &&
|
||||
grep master output
|
||||
|
||||
'
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue