t5510: use the correct tag name in test
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 23 Oct 2013 15:50:34 +0000 (17:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Oct 2013 20:27:45 +0000 (13:27 -0700)
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>
t/t5510-fetch.sh
index 1f0f8e6827773b1bb9a419a822de2d1ebde8e37a..c5e5dfc818cea574b1508c1fb3bb1e1ce23adad8 100755 (executable)
@@ -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' '