Skip to content

Commit 3b7012d

Browse files
authored
Update completion.py: check also for branch main
1 parent 3cc6cf6 commit 3b7012d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def branches_from_devguide(devguide_dir: Path) -> list[str]:
2222

2323
def get_completion(clones_dir: str, repo: str) -> tuple[float, 'TranslatorsData', str]:
2424
clone_path = Path(clones_dir, repo)
25-
for branch in branches_from_devguide(Path(clones_dir, 'devguide')) + ['master']:
25+
for branch in branches_from_devguide(Path(clones_dir, 'devguide')) + ['master', 'main']:
2626
try:
2727
git.Repo.clone_from(
2828
f'https://github.com/{repo}.git', clone_path, branch=branch

0 commit comments

Comments
 (0)