summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2012-06-24 11:01:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-06-25 04:22:57 (GMT)
commitf2c2c90103eaff6f39a289c15b9dbc06efaaf2a8 (patch)
tree722936c4db251743319a12b5b13dde92e0e4cda6 /t
parentf4d80d2639f8ef55c99c3b035c0312969acc7f01 (diff)
downloadgit-f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8.zip
git-f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8.tar.gz
git-f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8.tar.bz2
push: start warning upcoming default change for push.default
In preparation for flipping the default to the "simple" mode from the "matching" mode that is the historical default, start warning users when they rely on unconfigured "git push" to default to the "matching" mode. Also, advertise for 'simple' where 'current' and 'upstream' are advised. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5541-http-push.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t5541-http-push.sh b/t/t5541-http-push.sh
index 5b170be..07fa199 100755
--- a/t/t5541-http-push.sh
+++ b/t/t5541-http-push.sh
@@ -64,7 +64,10 @@ test_expect_success 'no empty path components' '
test_expect_success 'clone remote repository' '
rm -rf test_repo_clone &&
- git clone $HTTPD_URL/smart/test_repo.git test_repo_clone
+ git clone $HTTPD_URL/smart/test_repo.git test_repo_clone &&
+ (
+ cd test_repo_clone && git config push.default matching
+ )
'
test_expect_success 'push to remote repository (standard)' '