diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2013-03-04 17:40:48 -0600 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2013-03-04 18:10:57 -0600 |
| commit | 5bddabcca580377e50e4844544b0d969ea248683 (patch) | |
| tree | 65f139198d6f3fc4e1785b0d84d9298e06fbf2f2 /src/checkout.c | |
| parent | 323bb88514347ebb7a1d760490384b305f4f4d92 (diff) | |
| download | libgit2-5bddabcca580377e50e4844544b0d969ea248683.tar.gz | |
clear REUC on checkout
Diffstat (limited to 'src/checkout.c')
| -rw-r--r-- | src/checkout.c | 3 |
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); } } |
