Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
tag: Add more tests about mixing incompatible modes and options
author
Samuel Tardieu
<sam@rfc1149.net>
Tue, 4 Nov 2008 23:20:36 +0000
(
00:20
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 4 Nov 2008 23:46:47 +0000
(15:46 -0800)
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
6fa8342
)
diff --git
a/t/t7004-tag.sh
b/t/t7004-tag.sh
index 33cde705953acc9a30d8535da77fe0f90e2b3118..c616deb0d0315acc41da93a81145494bc9f455c1 100755
(executable)
--- a/
t/t7004-tag.sh
+++ b/
t/t7004-tag.sh
@@
-1090,4
+1090,15
@@
test_expect_success 'filename for the message is relative to cwd' '
git cat-file tag tag-from-subdir-2 | grep "in sub directory"
'
+# mixing modes and options:
+
+test_expect_success 'mixing incompatibles modes and options is forbidden' '
+ test_must_fail git tag -a
+ test_must_fail git tag -l -v
+ 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_done