Skip to content

Commit

Permalink
t5523-push-upstream: add function to ensure fresh upstream repo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Oct 18, 2010
1 parent e674c17 commit 2d59ced
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/t5523-push-upstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
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' '
git init --bare parent &&
ensure_fresh_upstream &&
git remote add upstream parent
'

Expand Down

0 comments on commit 2d59ced

Please sign in to comment.