Fix index not updating

This commit is contained in:
alk 2022-11-27 01:09:54 +03:00 committed by GitHub
parent f347741068
commit 799e7374a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,11 @@ void Index::updateIndex(IndexUpdateCallback callback, bool force) {
// gee i sure hope no one does 60 commits to the mod index an hour and download every
// single one of them
if (upcomingCommitSHA == "") {
auto err = this->updateIndexFromLocalCache();
if (!err) {
RETURN_ERROR(err.error());
}
m_upToDate = true;
m_updating = false;