mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed an issue in GuiThemeDownloader where local changes could not be reset if there were no updates available
This commit is contained in:
parent
b0cf51aa6b
commit
c285ae7d63
|
@ -263,6 +263,12 @@ bool GuiThemeDownloader::fetchRepository(const std::string& repositoryName,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (allowReset && checkLocalChanges(repository)) {
|
||||||
|
LOG(LogInfo) << "Repository \"" << repositoryName
|
||||||
|
<< "\" contains local changes, performing hard reset";
|
||||||
|
resetRepository(repository);
|
||||||
|
}
|
||||||
|
|
||||||
if (mergeAnalysis & GIT_MERGE_ANALYSIS_UP_TO_DATE) {
|
if (mergeAnalysis & GIT_MERGE_ANALYSIS_UP_TO_DATE) {
|
||||||
LOG(LogInfo) << "Repository \"" << repositoryName << "\" already up to date";
|
LOG(LogInfo) << "Repository \"" << repositoryName << "\" already up to date";
|
||||||
if (repositoryName != "themes-list")
|
if (repositoryName != "themes-list")
|
||||||
|
@ -275,12 +281,6 @@ bool GuiThemeDownloader::fetchRepository(const std::string& repositoryName,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allowReset && checkLocalChanges(repository)) {
|
|
||||||
LOG(LogInfo) << "Repository \"" << repositoryName
|
|
||||||
<< "\" contains local changes, performing hard reset";
|
|
||||||
resetRepository(repository);
|
|
||||||
}
|
|
||||||
|
|
||||||
LOG(LogInfo) << "Performing Git fast-forward of repository \"" << repositoryName << "\"";
|
LOG(LogInfo) << "Performing Git fast-forward of repository \"" << repositoryName << "\"";
|
||||||
|
|
||||||
git_reference* oldTargetRef {nullptr};
|
git_reference* oldTargetRef {nullptr};
|
||||||
|
|
Loading…
Reference in a new issue