Skip to content

Commit 93c071a

Browse files
committed
repo: ignore missing 'safe.directory' config during ownership checks
1 parent dd21e20 commit 93c071a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libgit2/repository.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ static int validate_ownership_config(bool *is_safe, const char *path)
521521
validate_ownership_cb,
522522
&ownership_data);
523523

524+
if (error == GIT_ENOTFOUND)
525+
error = 0;
526+
524527
git_config_free(config);
525528
git_str_dispose(&ownership_data.tmp);
526529

0 commit comments

Comments
 (0)