diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2017-03-23 16:05:18 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-23 20:02:55 +0300 |
commit | b643827b9443deadaa5804998116107953f8b42f (patch) | |
tree | 65895323f1ac1d845753039b81259b0ee493e578 /t/t7004-tag.sh | |
parent | 17d6c744dc0d5ed4cd0f228da14239ea2654f05b (diff) |
ref-filter: add test for --contains on a non-commit
Change the tag test suite to test for --contains on a tree & blob. It
only accepts commits and will spew out "<object> is a tree, not a
commit".
It's sufficient to test this just for the "tag" and "branch" commands,
because it covers all the machinery shared between "branch" and
"for-each-ref".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7004-tag.sh')
-rwxr-xr-x | t/t7004-tag.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh index 45790664c1..3439913488 100755 --- a/t/t7004-tag.sh +++ b/t/t7004-tag.sh @@ -1461,7 +1461,9 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' ' test_must_fail git tag -n 100 && test_must_fail git tag -l -m msg && test_must_fail git tag -l -F some file && - test_must_fail git tag -v -s + test_must_fail git tag -v -s && + test_must_fail git tag --contains tag-tree && + test_must_fail git tag --contains tag-blob ' # check points-at |