Commit 2f2fe015 authored by Michal Čihař's avatar Michal Čihař

Force cache update on error

The gitdb is probably not able to detect changes here, so let's force it
to reread the data.

Issue #449
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b0f9a13c
......@@ -404,7 +404,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
except ODBError:
# Try to reread git database in case our in memory object is not
# up to date with it.
self.git_repo.odb.update_cache()
self.git_repo.odb.update_cache(True)
return self.git_repo.commit('origin/%s' % self.branch)
def get_repo_url(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment