summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-09-12 14:41:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-09-12 14:41:41 -0700
commit100ce1c543b8e9961ed59c047b902da1dd649666 (patch)
tree41b16b5ca4c390f2109707cd234e62d6c3f9f339 /t
parentMerge branch 'jc/commit-is-spelled-with-two-ems' (diff)
parentgit-remote-mediawiki: no need to update private ref in non-dumb push (diff)
downloadtgif-100ce1c543b8e9961ed59c047b902da1dd649666.tar.xz
Merge branch 'mm/mediawiki-dumb-push-fix'
* mm/mediawiki-dumb-push-fix: git-remote-mediawiki: no need to update private ref in non-dumb push git-remote-mediawiki: use no-private-update capability on dumb push transport-helper: add no-private-update capability git-remote-mediawiki: add test and check Makefile targets
Diffstat (limited to 't')
-rwxr-xr-xt/t5801-remote-helpers.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index 8c4c5396a8..613f69a254 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -182,6 +182,17 @@ test_expect_success 'push update refs' '
)
'
+test_expect_success 'push update refs disabled by no-private-update' '
+ (cd local &&
+ echo more-update >>file &&
+ git commit -a -m more-update &&
+ git rev-parse --verify testgit/origin/heads/update >expect &&
+ GIT_REMOTE_TESTGIT_NO_PRIVATE_UPDATE=t git push origin update &&
+ git rev-parse --verify testgit/origin/heads/update >actual &&
+ test_cmp expect actual
+ )
+'
+
test_expect_success 'push update refs failure' '
(cd local &&
git checkout update &&