From fe493e3aaba1ccd47932b36376b585587f07ef28 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Apr 07 2023 17:56:59 +0000 Subject: avoid redirection warning when cloning anonymously Using `centpkg clone -a` results in a warning from git due to the URL being redirected: $ centpkg clone -a git Cloning into 'git'... warning: redirecting to https://gitlab.com/redhat/centos-stream/rpms/git.git/ ... Update anongiturl to point to the real URL for HTTP cloning. The addition of the trailing slash does not raise a warning, so it may be safely left off the URL. --- diff --git a/src/centpkg.conf b/src/centpkg.conf index e8151b1..0e881aa 100644 --- a/src/centpkg.conf +++ b/src/centpkg.conf @@ -5,7 +5,7 @@ lookaside_cgi = https://sources.stream.rdu2.redhat.com/lookaside/upload.cgi distgit_namespaced = True distgit_namespaces = rpms gitbaseurl = git+ssh://git@gitlab.com/redhat/centos-stream/%(repo)s.git -anongiturl = https://gitlab.com/redhat/centos-stream/%(repo)s +anongiturl = https://gitlab.com/redhat/centos-stream/%(repo)s.git branchre = .+\d$|.+\d-.+|master$ kojiprofile = stream build_client = "koji -p stream"