summaryrefslogtreecommitdiff
path: root/tests-clar/repo
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-03-10 22:38:53 -0700
committerRussell Belfer <rb@github.com>2013-03-10 22:38:53 -0700
commit61c7b61e6fe2542deeb8d2aadbea90a8f5b3c9cd (patch)
treed3bd3b665bad772e9e7b9815c290c26d282f81a8 /tests-clar/repo
parenta03beb7ba6017181c29d77e64112e4730f690271 (diff)
downloadlibgit2-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.c4
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);