push: the beginning of "git push --signed"
[gitweb.git] / t / t1511-rev-parse-caret.sh
index eaefc777bd98aeb4cae2ba34eec0e5fe2c2fbd72..15973f20945769fd7661cd4b203e96032495a60e 100755 (executable)
@@ -54,6 +54,13 @@ test_expect_success 'ref^{tree}' '
        test_must_fail git rev-parse blob-tag^{tree}
 '
 
+test_expect_success 'ref^{tag}' '
+       test_must_fail git rev-parse HEAD^{tag} &&
+       git rev-parse commit-tag >expected &&
+       git rev-parse commit-tag^{tag} >actual &&
+       test_cmp expected actual
+'
+
 test_expect_success 'ref^{/.}' '
        git rev-parse master >expected &&
        git rev-parse master^{/.} >actual &&