Show More
@@ -371,15 +371,16 b' def create_repo_fork(form_data, cur_user' | |||
|
371 | 371 | |
|
372 | 372 | alias = form_data['repo_type'] |
|
373 | 373 | org_repo_name = form_data['org_path'] |
|
374 | fork_name = form_data['repo_name_full'] | |
|
374 | 375 | source_repo_path = os.path.join(base_path, org_repo_name) |
|
375 |
destination_fork_path = os.path.join(base_path, for |
|
|
376 | destination_fork_path = os.path.join(base_path, fork_name) | |
|
376 | 377 | |
|
377 | 378 | log.info('creating fork of %s as %s', source_repo_path, |
|
378 | 379 | destination_fork_path) |
|
379 | 380 | backend = get_backend(alias) |
|
380 | 381 | backend(safe_str(destination_fork_path), create=True, |
|
381 | 382 | src_url=safe_str(source_repo_path)) |
|
382 |
action_logger(cur_user, 'user_forked_repo:%s' % |
|
|
383 | action_logger(cur_user, 'user_forked_repo:%s' % fork_name, | |
|
383 | 384 | org_repo_name, '', Session) |
|
384 | 385 | # finally commit at latest possible stage |
|
385 | 386 | Session.commit() |
General Comments 0
You need to be logged in to leave comments.
Login now