diff options
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 6aefe4432..e1b52610b 100644 --- a/src/index.c +++ b/src/index.c @@ -405,7 +405,7 @@ static int index_init_entry(git_index_entry *entry, git_index *index, const char  	if (gitfo_exists(full_path) < 0)  		return git__throw(GIT_ENOTFOUND, "Failed to initialize entry. %s does not exist", full_path); -	if (gitfo_stat(full_path, &st) < 0) +	if (gitfo_lstat(full_path, &st) < 0)  		return git__throw(GIT_EOSERR, "Failed to initialize entry. %s appears to be corrupted", full_path);  	if (stage < 0 || stage > 3)  | 
