Skip to content

Commit 4c6f609

Browse files
authored
Allow add repo for repo folders inside MLC/repos (#200)
1 parent c524960 commit 4c6f609

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlc/repo_action.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ def add(self, run_args):
7777

7878
repo_path = os.path.join(self.repos_path, repo_folder_name)
7979

80-
if os.path.exists(repo_path):
81-
return {'return': 1, "error": f"""Repo {run_args['repo']} already exists at {repo_path}"""}
8280
for repo in self.repos:
8381
if repo.path == i_repo_path:
8482
return {'return': 1, "error": f"""Repo already exists at {repo.path}"""}

0 commit comments

Comments
 (0)