From 4c20b35f51a950e7fa6305620b85f4a7941f3b7e Mon Sep 17 00:00:00 2001 From: Moein Owhadi-Kareshk Date: Fri, 31 Aug 2018 10:07:54 -0600 Subject: [PATCH] Fix naming bud in cloning --- merge_excavator/clone_repositories.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/merge_excavator/clone_repositories.py b/merge_excavator/clone_repositories.py index 844b050..d793f52 100755 --- a/merge_excavator/clone_repositories.py +++ b/merge_excavator/clone_repositories.py @@ -14,7 +14,7 @@ def clone_repository(repository_name): :param repository_name: The name of the repository in / 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() @@ -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)