From f2c2c90103eaff6f39a289c15b9dbc06efaaf2a8 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 24 Jun 2012 13:01:37 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- t/t5541-http-push.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't/t5541-http-push.sh') 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)' ' -- cgit v1.2.1