Show More
@@ -231,7 +231,7 b' class ReposController(BaseController):' | |||
|
231 | 231 | try: |
|
232 | 232 | ScmModel().mark_for_invalidation(repo_name) |
|
233 | 233 | except Exception, e: |
|
234 | h.flash(_('An error occured during cache invalidation'), | |
|
234 | h.flash(_('An error occurred during cache invalidation'), | |
|
235 | 235 | category='error') |
|
236 | 236 | return redirect(url('edit_repo', repo_name=repo_name)) |
|
237 | 237 | |
@@ -251,7 +251,9 b' class ReposController(BaseController):' | |||
|
251 | 251 | else: |
|
252 | 252 | last_rev = 0 |
|
253 | 253 | c.stats_revision = last_rev |
|
254 |
|
|
|
254 | r = ScmModel().get(repo_name) | |
|
255 | c.repo_last_rev = r.revisions[-1] if r.revisions else 0 | |
|
256 | ||
|
255 | 257 | if last_rev == 0: |
|
256 | 258 | c.stats_percentage = 0 |
|
257 | 259 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now