diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh
index 80d20c876bb..f7d0f146f0f 100755
--- a/t/t5550-http-fetch.sh
+++ b/t/t5550-http-fetch.sh
@@ -13,6 +13,7 @@ LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5550'}
 start_httpd
 
 test_expect_success 'setup repository' '
+	git config push.default matching &&
 	echo content1 >file &&
 	git add file &&
 	git commit -m one