diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-12-16 19:24:04 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-12-17 13:05:27 -0500 |
commit | dce7b1a4e75551804a33591744d40d0582c57cfb (patch) | |
tree | fe3d7175cc770d1d3940a3d90672913817f5bc51 /src/notes.c | |
parent | ec74b40ceef3dc3892c7d84bb4f5d99bab504ba4 (diff) | |
download | libgit2-dce7b1a4e75551804a33591744d40d0582c57cfb.tar.gz |
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 'src/notes.c')
-rw-r--r-- | src/notes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/notes.c b/src/notes.c index 8fdf388ab..a0bc0d355 100644 --- a/src/notes.c +++ b/src/notes.c @@ -107,7 +107,7 @@ static int tree_write( const git_tree_entry *entry; git_oid tree_oid; - if ((error = git_treebuilder_create(&tb, source_tree)) < 0) + if ((error = git_treebuilder_create(&tb, repo, source_tree)) < 0) goto cleanup; if (object_oid) { @@ -119,7 +119,7 @@ static int tree_write( goto cleanup; } - if ((error = git_treebuilder_write(&tree_oid, repo, tb)) < 0) + if ((error = git_treebuilder_write(&tree_oid, tb)) < 0) goto cleanup; error = git_tree_lookup(out, repo, &tree_oid); |