We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee797d commit 8c58228Copy full SHA for 8c58228
mlc/repo_action.py
@@ -222,6 +222,7 @@ def find(self, run_args):
222
matched_repo_path = repo_obj
223
break
224
225
+
226
# Search through self.repos for matching repos
227
lst = []
228
for i in self.repos:
@@ -539,8 +540,11 @@ def rm(self, run_args):
539
540
repo_path = repo.path
541
542
else:
- if os.path.exists(run_args['repo']):
543
- repo_path = run_args['repo']
+ repo = run_args['repo']
544
+ if os.path.exists(repo):
545
+ repo_path = repo
546
+ elif os.path.isdir(os.path.join(self.repos_path, repo)):
547
+ repo_path = os.path.join(self.repos_path, repo)
548
549
return r
550
0 commit comments