From: Jonathan Nieder Date: Mon, 19 Apr 2010 08:03:03 +0000 (-0500) Subject: t5704 (bundle): add tests for bundle --stdin X-Git-Tag: v1.7.2-rc0~106^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f62e0a39b69c2752b92f01bb05a6676639f46a65;p=git.git 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 for the report. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/t/t5704-bundle.sh b/t/t5704-bundle.sh index a8f4419e6..ddc3dc52f 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 ' ' + + echo master | git bundle create hybrid-bundle.bdl --stdin tag && + git ls-remote hybrid-bundle.bdl >output && + grep master output + +' + test_done