Fix repository checking
Commit 77f980b70e
broke the repository
checking code, and would throw an exception when trying to access an
invalid member 'key'.
Change-Id: Ic77d26c57647ad21fe78cdd3253290a42b231d7e
This commit is contained in:
parent
7576f47d02
commit
c5472b2e1c
|
@ -609,7 +609,7 @@ class CheckReposTask(Task):
|
||||||
try:
|
try:
|
||||||
repo = app.getRepo(project.name)
|
repo = app.getRepo(project.name)
|
||||||
if repo.newly_cloned or app.fetch_missing_refs:
|
if repo.newly_cloned or app.fetch_missing_refs:
|
||||||
sync.submitTask(CheckRevisionsTask(key,
|
sync.submitTask(CheckRevisionsTask(project.key,
|
||||||
priority=LOW_PRIORITY))
|
priority=LOW_PRIORITY))
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.exception("Exception checking repo %s" %
|
self.log.exception("Exception checking repo %s" %
|
||||||
|
|
Loading…
Reference in New Issue