Skip to content

Commit bb11893

Browse files
author
Vladimir Kotal
committed
allow commands to be None
1 parent c5c459a commit bb11893

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/sync/repofactory.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def get_repository(logger, path, repo_type, project, commands, env, hooks,
3939

4040
logger.debug("Constructing repo object for path {}".format(path))
4141

42+
if not commands:
43+
commands = {}
44+
4245
if repo_lower in ["mercurial", "hg"]:
4346
return MercurialRepository(logger, path, project,
4447
commands.get("hg"),

0 commit comments

Comments
 (0)