aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-04-19 03:03:03 -0500
committerJunio C Hamano <gitster@pobox.com>2010-04-19 22:14:39 -0700
commitf62e0a39b69c2752b92f01bb05a6676639f46a65 (patch)
tree431339fb0b9d08c43a5fff80e6109b4762b9a008
parent03aa87ed9912a6beac1a23e69ef0b70e1589d3d0 (diff)
downloadgit-f62e0a39b69c2752b92f01bb05a6676639f46a65.tar.gz
git-f62e0a39b69c2752b92f01bb05a6676639f46a65.tar.xz
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>
-rwxr-xr-xt/t5704-bundle.sh16
1 files changed, 16 insertions, 0 deletions
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 <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