Skip to content

Commit f9bab83

Browse files
committed
TestPrefixFilter(): add tests of prefixes ending in /
1 parent c7c0d03 commit f9bab83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

git/ref_filter_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ func TestPrefixFilter(t *testing.T) {
2323
{"refs/heads", "refs/he", false},
2424
{"refs/heads", "refs/headstrong", false},
2525
{"refs/heads", "refs/tags/refs/heads", false},
26+
{"refs/heads/", "refs/heads", false},
27+
{"refs/heads/", "refs/heads/foo/bar", true},
2628
{"refs/stash", "refs/stash", true},
2729
{"refs/stash", "refs/stashy", false},
2830
{"refs/remotes", "refs/remotes/origin/master", true},

0 commit comments

Comments
 (0)