summaryrefslogtreecommitdiff
path: root/src/frontend/cli
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-06 17:41:14 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-06 17:41:14 +0100
commit8fa8f13fd8d8d7e0f2cc2e2738339f25365ba70b (patch)
tree5e652db0d54e396187641eb0cb2683191b0b4bba /src/frontend/cli
parentd49c1756c0f509430cb03d1a4c2cf9c908487929 (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')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py14
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:]: