diff options
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index d5410a3a7..7f5909ae0 100644 --- a/src/index.c +++ b/src/index.c @@ -319,8 +319,7 @@ static int index_entry_init(git_index_entry **entry_out, git_index *index, const if (error < GIT_SUCCESS) return error; - if (p_lstat(full_path.ptr, &st) < 0) { - error = git__throw(GIT_ENOTFOUND, "Failed to initialize entry. '%s' cannot be opened. %s", full_path.ptr, strerror(errno)); + if ((error = git_path_lstat(full_path.ptr, &st)) < 0) { git_buf_free(&full_path); return error; } |
