diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-04-19 03:03:03 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-19 22:14:39 -0700 |
commit | f62e0a39b69c2752b92f01bb05a6676639f46a65 (patch) | |
tree | 431339fb0b9d08c43a5fff80e6109b4762b9a008 /t/t5704-bundle.sh | |
parent | 03aa87ed9912a6beac1a23e69ef0b70e1589d3d0 (diff) | |
download | git-f62e0a39b69c2752b92f01bb05a6676639f46a65.tar.gz |
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>
Diffstat (limited to 't/t5704-bundle.sh')
-rwxr-xr-x | t/t5704-bundle.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/t5704-bundle.sh b/t/t5704-bundle.sh index a8f4419e61..ddc3dc52f4 100755 --- a/t/t5704-bundle.sh +++ b/t/t5704-bundle.sh @@ -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 |