tag: Add more tests about mixing incompatible modes and options
Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Samuel Tardieu committed
Nov 5, 2008 at 00:20 UTC
e0e03a731b2d06f42e79a2ff156ef9bd0e5c6c02
1 file changed
+11
t/t7004-tag.sh
+11
@@ -1090,4 +1090,15 @@ test_expect_success 'filename for the message is relative to cwd' '
1090
git cat-file tag tag-from-subdir-2 | grep "in sub directory"
1091
'
1092
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
+
1104
test_done