|
a/Allura/allura/tasks/repo_tasks.py |
|
b/Allura/allura/tasks/repo_tasks.py |
|
... |
|
... |
27 |
M.Notification.post_user(
|
27 |
M.Notification.post_user(
|
28 |
c.user, c.app.repo, 'created',
|
28 |
c.user, c.app.repo, 'created',
|
29 |
text='Repository %s/%s created' % (
|
29 |
text='Repository %s/%s created' % (
|
30 |
c.project.shortname, c.app.config.options.mount_point))
|
30 |
c.project.shortname, c.app.config.options.mount_point))
|
31 |
except Exception, e:
|
31 |
except Exception, e:
|
32 |
source_url = cloned_from_path or cloned_from_url
|
|
|
33 |
g.post_event('repo_clone_task_failed', source_url, traceback.format_exc())
|
32 |
g.post_event('repo_clone_task_failed', cloned_from_url, cloned_from_path, traceback.format_exc())
|
34 |
|
33 |
|
35 |
@task
|
34 |
@task
|
36 |
def reclone(*args, **kwargs):
|
35 |
def reclone(*args, **kwargs):
|
37 |
from allura import model as M
|
36 |
from allura import model as M
|
38 |
from ming.orm import ThreadLocalORMSession
|
37 |
from ming.orm import ThreadLocalORMSession
|