[libvirt-ci PATCH 3/4] check-dco: Change remote name
Andrea Bolognani
abologna at redhat.com
Thu Apr 30 19:28:11 UTC 2020
Make it match the name of the script.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
containers/check-dco/check-dco.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/containers/check-dco/check-dco.py b/containers/check-dco/check-dco.py
index 643e7f3..79cfadc 100755
--- a/containers/check-dco/check-dco.py
+++ b/containers/check-dco/check-dco.py
@@ -27,17 +27,17 @@ cwd = os.getcwd()
reponame = os.path.basename(cwd)
repourl = "https://gitlab.com/libvirt/%s.git" % reponame
-subprocess.check_call(["git", "remote", "add", "dcocheck", repourl])
-subprocess.check_call(["git", "fetch", "dcocheck", "master"],
+subprocess.check_call(["git", "remote", "add", "check-dco", repourl])
+subprocess.check_call(["git", "fetch", "check-dco", "master"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL)
-ancestor = subprocess.check_output(["git", "merge-base", "dcocheck/master", "HEAD"],
+ancestor = subprocess.check_output(["git", "merge-base", "check-dco/master", "HEAD"],
universal_newlines=True)
ancestor = ancestor.strip()
-subprocess.check_call(["git", "remote", "rm", "dcocheck"])
+subprocess.check_call(["git", "remote", "rm", "check-dco"])
errors = False
--
2.25.4
More information about the libvir-list
mailing list