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>
This commit is contained in:

committed by
Junio C Hamano

parent
f4d80d2639
commit
f2c2c90103
@ -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)' '
|
||||
|
Reference in New Issue
Block a user