Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test_description='push with --set-upstream'
. ./test-lib.sh
test_description='push with --set-upstream'
. ./test-lib.sh
+ensure_fresh_upstream() {
+ rm -rf parent && git init --bare parent
+}
+
test_expect_success 'setup bare parent' '
test_expect_success 'setup bare parent' '
- git init --bare parent &&
+ ensure_fresh_upstream &&
git remote add upstream parent
'
git remote add upstream parent
'