diff options
| author | Russell Belfer <rb@github.com> | 2013-03-10 22:38:53 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-03-10 22:38:53 -0700 |
| commit | 61c7b61e6fe2542deeb8d2aadbea90a8f5b3c9cd (patch) | |
| tree | d3bd3b665bad772e9e7b9815c290c26d282f81a8 /tests-clar/repo | |
| parent | a03beb7ba6017181c29d77e64112e4730f690271 (diff) | |
| download | libgit2-61c7b61e6fe2542deeb8d2aadbea90a8f5b3c9cd.tar.gz | |
Use correct case path in icase tree iterator
If there are case-ambiguities in the path of a case insensitive
tree iterator, it will now rewrite the entire path when it gives
the path name to an entry, so a tree with "A/b/C/d.txt" and
"a/B/c/E.txt" will give the true full paths (instead of case-
folding them both to "A/B/C/d.txt" or "a/b/c/E.txt" or something
like that.
Diffstat (limited to 'tests-clar/repo')
| -rw-r--r-- | tests-clar/repo/iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/repo/iterator.c b/tests-clar/repo/iterator.c index 63613e903..804bc8324 100644 --- a/tests-clar/repo/iterator.c +++ b/tests-clar/repo/iterator.c @@ -456,7 +456,7 @@ void test_repo_iterator__tree_case_conflicts(void) const char *expect_cs[] = { "A/1.file", "A/3.file", "a/2.file", "a/4.file" }; const char *expect_ci[] = { - "a/1.file", "a/2.file", "a/3.file", "a/4.file" }; + "A/1.file", "a/2.file", "A/3.file", "a/4.file" }; g_repo = cl_git_sandbox_init("icase"); @@ -479,7 +479,7 @@ void test_repo_iterator__tree_case_conflicts(void) cl_git_pass(git_iterator_for_tree( &i, tree, GIT_ITERATOR_IGNORE_CASE, NULL, NULL)); - expect_iterator_items(i, 4, expect_ci, -4, expect_ci); + expect_iterator_items(i, 4, expect_ci, 4, expect_ci); git_iterator_free(i); git_tree_free(tree); |
