mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 01:25:38 +00:00
The Git index stat cache is now refreshed for all themes when starting the theme downloader
This commit is contained in:
parent
56996c0a26
commit
3dcc7be790
|
@ -435,8 +435,8 @@ bool GuiThemeDownloader::checkLocalChanges(git_repository* repository)
|
||||||
// it possible to add custom files to the repository without overwriting these when
|
// it possible to add custom files to the repository without overwriting these when
|
||||||
// pulling theme updates.
|
// pulling theme updates.
|
||||||
statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
|
statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
|
||||||
statusOptions.flags =
|
statusOptions.flags = GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
|
||||||
GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX | GIT_STATUS_OPT_SORT_CASE_SENSITIVELY;
|
GIT_STATUS_OPT_SORT_CASE_SENSITIVELY | GIT_STATUS_OPT_UPDATE_INDEX;
|
||||||
|
|
||||||
errorCode = git_status_list_new(&status, repository, &statusOptions);
|
errorCode = git_status_list_new(&status, repository, &statusOptions);
|
||||||
if (errorCode == 0)
|
if (errorCode == 0)
|
||||||
|
@ -465,7 +465,8 @@ bool GuiThemeDownloader::checkCorruptRepository(git_repository* repository)
|
||||||
#endif
|
#endif
|
||||||
statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
|
statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;
|
||||||
statusOptions.flags = GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
|
statusOptions.flags = GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX |
|
||||||
GIT_STATUS_OPT_SORT_CASE_SENSITIVELY | GIT_STATUS_OPT_INCLUDE_UNMODIFIED;
|
GIT_STATUS_OPT_SORT_CASE_SENSITIVELY | GIT_STATUS_OPT_INCLUDE_UNMODIFIED |
|
||||||
|
GIT_STATUS_OPT_UPDATE_INDEX;
|
||||||
|
|
||||||
errorCode = git_status_list_new(&status, repository, &statusOptions);
|
errorCode = git_status_list_new(&status, repository, &statusOptions);
|
||||||
if (errorCode == 0)
|
if (errorCode == 0)
|
||||||
|
|
Loading…
Reference in a new issue