diff options
author | Pierre Habouzit <madcoder@debian.org> | 2007-12-21 11:50:58 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-12-22 00:05:02 -0800 |
commit | 78d776a9699cd3e3d368366afaa66dee97e53ac5 (patch) | |
tree | 64592565e9ab701ec976eabe8194f4bed300c582 /t | |
parent | 56c3eb173293d512fa85add94a7d0a3bfc6fe74a (diff) | |
download | git-78d776a9699cd3e3d368366afaa66dee97e53ac5.tar.gz |
git-tag: fix -l switch handling regression.
The command itself takes an optional <pattern> argument that
limits the shown tags to the ones that match when in listing
mode that is triggered with '-l' option. The <pattern> is not
an optional option-argument to '-l'.
With this fix, "git tag -l -n 4 v0.99" works as expected.
It also removes a few bogus tests in t7004.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-x | t/t7004-tag.sh | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh index 09d56e0839..6f41ce3a77 100755 --- a/t/t7004-tag.sh +++ b/t/t7004-tag.sh @@ -497,10 +497,6 @@ test_expect_success \ git diff expect actual && echo "tag-one-line A msg" >expect && - git-tag -n xxx -l | grep "^tag-one-line" >actual && - git diff expect actual && - git-tag -n "" -l | grep "^tag-one-line" >actual && - git diff expect actual && git-tag -n 1 -l | grep "^tag-one-line" >actual && git diff expect actual && git-tag -n -l | grep "^tag-one-line" >actual && @@ -912,10 +908,6 @@ test_expect_success \ git diff expect actual && echo "stag-one-line A message line signed" >expect && - git-tag -n xxx -l | grep "^stag-one-line" >actual && - git diff expect actual && - git-tag -n "" -l | grep "^stag-one-line" >actual && - git diff expect actual && git-tag -n 1 -l | grep "^stag-one-line" >actual && git diff expect actual && git-tag -n -l | grep "^stag-one-line" >actual && |