]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1503-rev-parse-verify.sh
Merge branch 'jk/rev-parse-end-of-options'
[thirdparty/git.git] / t / t1503-rev-parse-verify.sh
index 492edffa9cfb626b4747ead04251fc33b0502ac9..dc9fe3cbf1b09ea6498cc73ca394adccef34d98a 100755 (executable)
@@ -144,4 +144,17 @@ test_expect_success SYMLINKS 'ref resolution not confused by broken symlinks' '
        test_must_fail git rev-parse --verify broken
 '
 
+test_expect_success 'options can appear after --verify' '
+       git rev-parse --verify HEAD >expect &&
+       git rev-parse --verify -q HEAD >actual &&
+       test_cmp expect actual
+'
+
+test_expect_success 'verify respects --end-of-options' '
+       git update-ref refs/heads/-tricky HEAD &&
+       git rev-parse --verify HEAD >expect &&
+       git rev-parse --verify --end-of-options -tricky >actual &&
+       test_cmp expect actual
+'
+
 test_done