Skip to content

Commit

Permalink
t5510: use the correct tag name in test
Browse files Browse the repository at this point in the history
Fix an apparent copy-paste error: A few lines earlier, a tag
"refs/tags/sometag" is created.  Check for the (non-)existence of that
tag, not "somebranch", which is otherwise never mentioned in the
script.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael Haggerty authored and Junio C Hamano committed Oct 24, 2013
1 parent 3d092bf commit 2004658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5510-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test_expect_success 'fetch --prune --tags does not delete the remote-tracking br
git fetch --prune --tags origin &&
git rev-parse origin/master &&
test_must_fail git rev-parse somebranch
test_must_fail git rev-parse sometag
'

test_expect_success 'fetch --prune --tags with branch does not delete other remote-tracking branches' '
Expand Down

0 comments on commit 2004658

Please sign in to comment.