Skip to content

Commit e0e03a7

Browse files
samueltardieugitster
authored andcommitted
tag: Add more tests about mixing incompatible modes and options
Signed-off-by: Samuel Tardieu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6fa8342 commit e0e03a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t7004-tag.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,4 +1090,15 @@ test_expect_success 'filename for the message is relative to cwd' '
10901090
git cat-file tag tag-from-subdir-2 | grep "in sub directory"
10911091
'
10921092
1093+
# mixing modes and options:
1094+
1095+
test_expect_success 'mixing incompatibles modes and options is forbidden' '
1096+
test_must_fail git tag -a
1097+
test_must_fail git tag -l -v
1098+
test_must_fail git tag -n 100
1099+
test_must_fail git tag -l -m msg
1100+
test_must_fail git tag -l -F some file
1101+
test_must_fail git tag -v -s
1102+
'
1103+
10931104
test_done

0 commit comments

Comments
 (0)