Skip to content

Commit

Permalink
tag: Add more tests about mixing incompatible modes and options
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Samuel Tardieu authored and Junio C Hamano committed Nov 4, 2008
1 parent 6fa8342 commit e0e03a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/t7004-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e0e03a7

Please sign in to comment.