summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-04-29 14:15:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-29 14:15:57 -0700
commit18c554b2720a869f1203a776cadd515fc6f3f840 (patch)
tree3015c48e406d980c401433fee20ba839b0166624 /t
parentMerge branch 'sg/diff-multiple-identical-renames' into maint (diff)
parentgit-send-pack: fix --all option when used with directory (diff)
downloadtgif-18c554b2720a869f1203a776cadd515fc6f3f840.tar.xz
Merge branch 'sk/send-pack-all-fix' into maint
"git send-pack --all <there>" was broken when its command line option parsing was written in the 2.6 timeframe. * sk/send-pack-all-fix: git-send-pack: fix --all option when used with directory
Diffstat (limited to 't')
-rwxr-xr-xt/t5400-send-pack.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 04cea97f87..305ca7a930 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -128,6 +128,18 @@ test_expect_success 'denyNonFastforwards trumps --force' '
test "$victim_orig" = "$victim_head"
'
+test_expect_success 'send-pack --all sends all branches' '
+ # make sure we have at least 2 branches with different
+ # values, just to be thorough
+ git branch other-branch HEAD^ &&
+
+ git init --bare all.git &&
+ git send-pack --all all.git &&
+ git for-each-ref refs/heads >expect &&
+ git -C all.git for-each-ref refs/heads >actual &&
+ test_cmp expect actual
+'
+
test_expect_success 'push --all excludes remote-tracking hierarchy' '
mkdir parent &&
(