Skip to content

Commit 2d59ced

Browse files
rctaygitster
authored andcommitted
t5523-push-upstream: add function to ensure fresh upstream repo
Signed-off-by: Tay Ray Chuan <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e674c17 commit 2d59ced

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

t/t5523-push-upstream.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
test_description='push with --set-upstream'
44
. ./test-lib.sh
55

6+
ensure_fresh_upstream() {
7+
rm -rf parent && git init --bare parent
8+
}
9+
610
test_expect_success 'setup bare parent' '
7-
git init --bare parent &&
11+
ensure_fresh_upstream &&
812
git remote add upstream parent
913
'
1014

0 commit comments

Comments
 (0)