Skip to content

Commit

Permalink
Fixed a couple of bugs
Browse files Browse the repository at this point in the history
1. shutil is required if --registry is passed
2. The function checkout_all_repos has the arg branch passed to it, not args, so use that instead
  • Loading branch information
pchakraborty committed Jan 3, 2025
1 parent 72d2a6f commit d3a7d51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mepo/command/clone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shutil
import pathlib
from urllib.parse import urlparse
from types import SimpleNamespace
Expand Down Expand Up @@ -119,7 +120,7 @@ def checkout_all_repos(allcomps, branch):
if branch is None:
raise RuntimeError("`allrepos` option must be used with a branch/tag.")
for comp in allcomps:
branch_y = colors.YELLOW + args.branch + colors.RESET
branch_y = colors.YELLOW + branch + colors.RESET
print(f"Checking out {branch_y} in {comp.name}")
git = GitRepository(comp.remote, comp.local)
git.checkout(args.branch)
git.checkout(branch)

0 comments on commit d3a7d51

Please sign in to comment.