aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2007-11-09 14:42:56 +0100
committerJunio C Hamano <gitster@pobox.com>2007-11-18 19:19:20 -0800
commit396865859918e9c7bf8ce74aae137c57da134610 (patch)
tree08e22b233edfbb5b5fa83d9d0fa2bf2c6e9fd45f /t
parentea55960518bb104020c02aa2f64b33f93d1775e7 (diff)
downloadgit-396865859918e9c7bf8ce74aae137c57da134610.tar.gz
git-396865859918e9c7bf8ce74aae137c57da134610.tar.xz
Make builtin-tag.c use parse_options.
Also, this removes those tests ensuring that repeated -m options don't allocate memory more than once, because now this is done after parsing options, using the last one when more are given. The same for -F. Signed-off-by: Carlos Rica <jasampler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t7004-tag.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
index 5f7e388d7..736f22e4a 100755
--- a/t/t7004-tag.sh
+++ b/t/t7004-tag.sh
@@ -339,20 +339,14 @@ test_expect_success \
'
test_expect_success \
- 'trying to create tags giving many -m or -F options should fail' '
+ 'trying to create tags giving both -m or -F options should fail' '
echo "message file 1" >msgfile1 &&
echo "message file 2" >msgfile2 &&
! tag_exists msgtag &&
- ! git-tag -m "message 1" -m "message 2" msgtag &&
- ! tag_exists msgtag &&
- ! git-tag -F msgfile1 -F msgfile2 msgtag &&
- ! tag_exists msgtag &&
! git-tag -m "message 1" -F msgfile1 msgtag &&
! tag_exists msgtag &&
! git-tag -F msgfile1 -m "message 1" msgtag &&
! tag_exists msgtag &&
- ! git-tag -F msgfile1 -m "message 1" -F msgfile2 msgtag &&
- ! tag_exists msgtag &&
! git-tag -m "message 1" -F msgfile1 -m "message 2" msgtag &&
! tag_exists msgtag
'