summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index d1ff04b52..5c89b6e59 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -1189,7 +1189,7 @@ static int diff_load_index(git_index **index, git_repository *repo)
int error = git_repository_index__weakptr(index, repo);
/* reload the repository index when user did not pass one in */
- if (!error && git_index_read(*index, true) < 0)
+ if (!error && git_index_read(*index, false) < 0)
giterr_clear();
return error;