summaryrefslogtreecommitdiff
path: root/src/checkout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checkout.c b/src/checkout.c
index 040ead2f6..19ac913d3 100644
--- a/src/checkout.c
+++ b/src/checkout.c
@@ -1143,6 +1143,9 @@ static int checkout_data_init(
if ((error = git_repository_index(&data->index, data->repo)) < 0 ||
(error = git_index_read(data->index)) < 0)
goto cleanup;
+
+ /* clear the REUC when doing a tree or commit checkout */
+ git_index_reuc_clear(data->index);
}
}