##// END OF EJS Templates
tasks: sync repo will be an EE part of geo sync
marcink -
r2463:790be79d default
parent child Browse files
Show More
@@ -266,21 +266,6 b' def create_repo_fork(form_data, cur_user'
266
266
267
267
268 @async_task(ignore_result=True)
268 @async_task(ignore_result=True)
269 def sync_repo(username, repoid):
270 from rhodecode.model.scm import ScmModel
271 log = get_logger(sync_repo)
272
273 repo = Repository.get_by_id_or_repo_name(repoid)
274
275 if repo and repo.clone_uri:
276 repo_name = repo.repo_name
277 log.info('Pulling from repository `%s`', repo_name)
278 ScmModel().pull_changes(repo, username)
279 else:
280 log.debug('Repo `%s` not found or without a clone_url', repoid)
281
282
283 @async_task(ignore_result=True)
284 def repo_maintenance(repoid):
269 def repo_maintenance(repoid):
285 from rhodecode.lib import repo_maintenance as repo_maintenance_lib
270 from rhodecode.lib import repo_maintenance as repo_maintenance_lib
286 log = get_logger(repo_maintenance)
271 log = get_logger(repo_maintenance)
General Comments 0
You need to be logged in to leave comments. Login now