Browse Source

t3033: avoid 'ambiguous refs' warning

Because "test_commit five" creates a commit and point it with a tag
'five', doing so on a branch whose name is 'five' will later result
in an 'ambiguous refs' warning.  Even though it is harmless because
all the later references are for the tag, there is no reason for the
branch to be called 'five'.  Give it a name that describes its
purpose more clearly, i.e. "newroot".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 9 years ago
parent
commit
de22496214
  1. 2
      t/t3033-merge-toplevel.sh

2
t/t3033-merge-toplevel.sh

@ -19,7 +19,7 @@ test_expect_success setup ' @@ -19,7 +19,7 @@ test_expect_success setup '
test_commit three &&
git checkout right &&
test_commit four &&
git checkout --orphan five &&
git checkout --orphan newroot &&
test_commit five &&
git checkout master
'

Loading…
Cancel
Save