diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-12-17 04:24:04 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-12-17 21:05:27 +0300 |
commit | dce7b1a4e75551804a33591744d40d0582c57cfb (patch) | |
tree | fe3d7175cc770d1d3940a3d90672913817f5bc51 /tests/repo | |
parent | ec74b40ceef3dc3892c7d84bb4f5d99bab504ba4 (diff) |
treebuilder: take a repository for path validation
Path validation may be influenced by `core.protectHFS` and
`core.protectNTFS` configuration settings, thus treebuilders
can take a repository to influence their configuration.
Diffstat (limited to 'tests/repo')
-rw-r--r-- | tests/repo/iterator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repo/iterator.c b/tests/repo/iterator.c index fb5561bc2..0e8793d99 100644 --- a/tests/repo/iterator.c +++ b/tests/repo/iterator.c @@ -427,7 +427,7 @@ static void build_test_tree( git_buf name = GIT_BUF_INIT; va_list arglist; - cl_git_pass(git_treebuilder_create(&builder, NULL)); /* start builder */ + cl_git_pass(git_treebuilder_create(&builder, repo, NULL)); /* start builder */ va_start(arglist, fmt); while (*scan) { @@ -451,7 +451,7 @@ static void build_test_tree( } va_end(arglist); - cl_git_pass(git_treebuilder_write(out, repo, builder)); + cl_git_pass(git_treebuilder_write(out, builder)); git_treebuilder_free(builder); git_buf_free(&name); |