Skip to content

Commit 9332441

Browse files
Michael J Grubergitster
authored andcommitted
t6018: add tests for rev-list's --branches and --tags
so that we know when they break. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f526d12 commit 9332441

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

t/t6018-rev-list-glob.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ test_expect_success 'rev-list --branches=subspace' '
162162
compare rev-list "subspace/one subspace/two" "--branches=subspace"
163163
164164
'
165+
166+
test_expect_success 'rev-list --branches' '
167+
168+
compare rev-list "master subspace-x someref other/three subspace/one subspace/two" "--branches"
169+
170+
'
171+
165172
test_expect_success 'rev-list --glob=heads/someref/* master' '
166173
167174
compare rev-list "master" "--glob=heads/someref/* master"
@@ -186,6 +193,12 @@ test_expect_success 'rev-list --tags=foo' '
186193
187194
'
188195

196+
test_expect_success 'rev-list --tags' '
197+
198+
compare rev-list "foo/bar" "--tags"
199+
200+
'
201+
189202
test_expect_success 'rev-list --remotes=foo' '
190203
191204
compare rev-list "foo/baz" "--remotes=foo"

0 commit comments

Comments
 (0)