aboutsummaryrefslogtreecommitdiff
path: root/t/lib-httpd.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-08-02 15:14:50 -0700
committerJunio C Hamano <gitster@pobox.com>2013-08-02 16:11:06 -0700
commit05c1eb10348f159908becc7a6ed6bbcdab24c893 (patch)
treebaa15650daafe64c4c07d463d6ba2996ca958623 /t/lib-httpd.sh
parent77aa93481d1b12372a70959de58917ff815b3bc6 (diff)
downloadgit-05c1eb10348f159908becc7a6ed6bbcdab24c893.tar.gz
git-05c1eb10348f159908becc7a6ed6bbcdab24c893.tar.xz
push: teach --force-with-lease to smart-http transport
We have been passing enough information to enable the compare-and-swap logic down to the transport layer, but the transport helper was not passing it to smart-http transport. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-httpd.sh')
-rw-r--r--t/lib-httpd.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh
index e2eca1fad..dab405d57 100644
--- a/t/lib-httpd.sh
+++ b/t/lib-httpd.sh
@@ -141,10 +141,11 @@ stop_httpd() {
-f "$TEST_PATH/apache.conf" $HTTPD_PARA -k stop
}
-test_http_push_nonff() {
+test_http_push_nonff () {
REMOTE_REPO=$1
LOCAL_REPO=$2
BRANCH=$3
+ EXPECT_CAS_RESULT=${4-failure}
test_expect_success 'non-fast-forward push fails' '
cd "$REMOTE_REPO" &&