From 3dcc7be790999677a4d56c7f69e99f6319e7123f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 6 Oct 2024 22:20:21 +0200 Subject: [PATCH] The Git index stat cache is now refreshed for all themes when starting the theme downloader --- es-app/src/guis/GuiThemeDownloader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiThemeDownloader.cpp b/es-app/src/guis/GuiThemeDownloader.cpp index 87a94ea12..e14e86ae8 100644 --- a/es-app/src/guis/GuiThemeDownloader.cpp +++ b/es-app/src/guis/GuiThemeDownloader.cpp @@ -435,8 +435,8 @@ bool GuiThemeDownloader::checkLocalChanges(git_repository* repository) // it possible to add custom files to the repository without overwriting these when // pulling theme updates. statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR; - statusOptions.flags = - GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX | GIT_STATUS_OPT_SORT_CASE_SENSITIVELY; + statusOptions.flags = GIT_STATUS_OPT_RENAMES_HEAD_TO_INDEX | + GIT_STATUS_OPT_SORT_CASE_SENSITIVELY | GIT_STATUS_OPT_UPDATE_INDEX; errorCode = git_status_list_new(&status, repository, &statusOptions); if (errorCode == 0) @@ -465,7 +465,8 @@ bool GuiThemeDownloader::checkCorruptRepository(git_repository* repository) #endif statusOptions.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR; 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); if (errorCode == 0)