diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-07-06 17:41:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-07-06 17:41:14 +0100 |
commit | 8fa8f13fd8d8d7e0f2cc2e2738339f25365ba70b (patch) | |
tree | 5e652db0d54e396187641eb0cb2683191b0b4bba /src/frontend/cli/sisyphus-cli.py | |
parent | d49c1756c0f509430cb03d1a4c2cf9c908487929 (diff) |
libsisyphus : use pygit2 instead of subprocess to change branches, add options to use gitlab.com or pagure.io as remote
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-x | src/frontend/cli/sisyphus-cli.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index 13c84f2..1755666 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -51,9 +51,19 @@ if "__main__" == __name__: showHelp() elif "--branch" in sys.argv[1:]: if "--master" in sys.argv[2:]: - setupStable() + if "--gitlab" in sys.argv[3:]: + injectGitlabMaster() + elif "--pagure" in sys.argv[3:]: + injectPagureMaster() + else: + showHelp() elif "--next" in sys.argv[2:]: - setupTesting() + if "--gitlab" in sys.argv[3:]: + injectGitlabNext() + elif "--pagure" in sys.argv[3:]: + injectPagureNext() + else: + showHelp() else: showHelp() elif "--help" in sys.argv[1:]: |