diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2012-06-24 11:01:37 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-25 04:22:57 (GMT) |
commit | f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8 (patch) | |
tree | 722936c4db251743319a12b5b13dde92e0e4cda6 /t | |
parent | f4d80d2639f8ef55c99c3b035c0312969acc7f01 (diff) | |
download | git-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-x | t/t5541-http-push.sh | 5 |
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)' ' |