Branch from ci/stable, not the previous release.
This commit is contained in:
parent
54301fd5d9
commit
6f3883fabb
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# Copyright (C) 2018-2019 Lubuntu Team
|
# Copyright (C) 2018-2020 Lubuntu Team
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -20,7 +20,6 @@ import tempfile
|
|||||||
from phabricator import Phabricator
|
from phabricator import Phabricator
|
||||||
|
|
||||||
RELEASE = ""
|
RELEASE = ""
|
||||||
PASTRELEASE = ""
|
|
||||||
REPOLISTPATH = ""
|
REPOLISTPATH = ""
|
||||||
CLONEBASE = ""
|
CLONEBASE = ""
|
||||||
phab = Phabricator(host="" + "/api/", token="")
|
phab = Phabricator(host="" + "/api/", token="")
|
||||||
@ -33,7 +32,7 @@ with tempfile.TemporaryDirectory() as workingdir:
|
|||||||
# Clone the repository and push the new branch
|
# Clone the repository and push the new branch
|
||||||
git.Git(workingdir).clone(CLONEBASE + repository + ".git")
|
git.Git(workingdir).clone(CLONEBASE + repository + ".git")
|
||||||
gitrepo = git.Repo(workingdir + "/" + repository)
|
gitrepo = git.Repo(workingdir + "/" + repository)
|
||||||
gitrepo.git.checkout("ubuntu/" + PASTRELEASE)
|
gitrepo.git.checkout("ci/stable")
|
||||||
try:
|
try:
|
||||||
gitrepo.git.branch("ubuntu/" + RELEASE)
|
gitrepo.git.branch("ubuntu/" + RELEASE)
|
||||||
except:
|
except:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user