Skip to content

Commit

Permalink
Fix naming bud in cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
mkareshk committed Aug 31, 2018
1 parent cfddd98 commit 4c20b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merge_excavator/clone_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def clone_repository(repository_name):
:param repository_name: The name of the repository in <USER_NAME>/<REPOSITORY_NAME> format
:return: Nothing
"""
validation.validation_repository_name(repository_name)
validation.validate_repository_name(repository_name)
cd_to_repository = 'cd {};'.format(config.REPOSITORY_PATH)
user_name = repository_name.split('/')[0].strip()
repo_name = repository_name.split('/')[1].strip()
Expand All @@ -30,6 +30,6 @@ def clone_repositories(repository_list, core_num = multiprocessing.cpu_count()):
:param core_num: The number of parallel threads. Default is all of the available cores
:return: Nothing
"""
validation.validation_core_num(core_num)
validation.validate_core_num(core_num)
repositories = open(config.REPOSITORY_LIST_PATH + repository_list + '.txt', 'rt').readlines()
Parallel(n_jobs = core_num)(delayed(clone_repository)(i) for i in repositories)

0 comments on commit 4c20b35

Please sign in to comment.