|
... |
|
... |
38 |
mount_points = [ ac.options.mount_point
|
38 |
mount_points = [ ac.options.mount_point
|
39 |
for ac in M.AppConfig.query.find(dict(project_id=p._id)) ]
|
39 |
for ac in M.AppConfig.query.find(dict(project_id=p._id)) ]
|
40 |
for app in (p.app_instance(mp) for mp in mount_points):
|
40 |
for app in (p.app_instance(mp) for mp in mount_points):
|
41 |
c.app = app
|
41 |
c.app = app
|
42 |
if not hasattr(app, 'repo'): continue
|
42 |
if not hasattr(app, 'repo'): continue
|
|
|
43 |
if options.clean:
|
|
|
44 |
M.LastCommitFor.query.remove(dict(repo_id=c.app.repo._id))
|
43 |
try:
|
45 |
try:
|
44 |
c.app.repo._impl._setup_receive_hook()
|
46 |
c.app.repo._impl._setup_receive_hook()
|
45 |
except:
|
47 |
except:
|
46 |
log.exception('Error setting up receive hook for %r', c.app.repo)
|
48 |
log.exception('Error setting up receive hook for %r', c.app.repo)
|
47 |
try:
|
49 |
try:
|