diff options
author | Andrea Bolognani <abologna@redhat.com> | 2020-04-30 21:22:19 +0200 |
---|---|---|
committer | Andrea Bolognani <abologna@redhat.com> | 2020-05-01 11:25:17 +0200 |
commit | e956dcc5bd900f0d55b0ad4355556f078e33f89a (patch) | |
tree | ad9afd097954fe8c259ce74b809c9b630a3c8722 /containers | |
parent | 6f720b22f4b504a59fc38b1e970cfa88e2d48e2f (diff) | |
download | libvirt-ci-e956dcc5bd900f0d55b0ad4355556f078e33f89a.zip libvirt-ci-e956dcc5bd900f0d55b0ad4355556f078e33f89a.tar.gz libvirt-ci-e956dcc5bd900f0d55b0ad4355556f078e33f89a.tar.bz2 |
check-dco: Support namespaces other than libvirt
This will allow us to reuse the same container image to perform
DCO checking for libosinfo repositories.
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'containers')
-rwxr-xr-x | containers/check-dco/check-dco.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/containers/check-dco/check-dco.py b/containers/check-dco/check-dco.py index 79cfadc..339fb57 100755 --- a/containers/check-dco/check-dco.py +++ b/containers/check-dco/check-dco.py @@ -23,9 +23,13 @@ import os.path import sys import subprocess +namespace = "libvirt" +if len(sys.argv) >= 2: + namespace = sys.argv[1] + cwd = os.getcwd() reponame = os.path.basename(cwd) -repourl = "https://gitlab.com/libvirt/%s.git" % reponame +repourl = "https://gitlab.com/%s/%s.git" % (namespace, reponame) subprocess.check_call(["git", "remote", "add", "check-dco", repourl]) subprocess.check_call(["git", "fetch", "check-dco", "master"], |