Actually assume the provided "org" is the repo when repo isn't provided
This commit is contained in:
parent
3411f12fc4
commit
f3d9fbb216
1 changed files with 6 additions and 2 deletions
|
@ -115,6 +115,10 @@ class Module(ModuleManager.BaseModule):
|
||||||
default_repo = channel.get_setting("github-default-repo", "")
|
default_repo = channel.get_setting("github-default-repo", "")
|
||||||
default_org, _, default_repo = default_repo.partition("/")
|
default_org, _, default_repo = default_repo.partition("/")
|
||||||
|
|
||||||
|
if org and not repo:
|
||||||
|
org = default_org
|
||||||
|
repo = org or default_repo
|
||||||
|
else:
|
||||||
org = org or default_org
|
org = org or default_org
|
||||||
repo = repo or default_repo
|
repo = repo or default_repo
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue