diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2012-06-24 13:01:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-24 21:22:57 -0700 |
commit | f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8 (patch) | |
tree | 722936c4db251743319a12b5b13dde92e0e4cda6 /t | |
parent | push.default doc: explain simple after upstream (diff) | |
download | tgif-f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8.tar.xz |
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 5b170be2c0..07fa199b14 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)' ' |