X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=t%2Ft1503-rev-parse-verify.sh;h=dc9fe3cbf1b09ea6498cc73ca394adccef34d98a;hb=7bd645e21d1ec66ec265d83e7f68e21086cc0a98;hp=492edffa9cfb626b4747ead04251fc33b0502ac9;hpb=110bdbddc85350b0f6f5eec223e102ca4b56e24f;p=thirdparty%2Fgit.git diff --git a/t/t1503-rev-parse-verify.sh b/t/t1503-rev-parse-verify.sh index 492edffa9c..dc9fe3cbf1 100755 --- a/t/t1503-rev-parse-verify.sh +++ b/t/t1503-rev-parse-verify.sh @@ -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