#72 avoid redirection warning when cloning anonymously
Merged a year ago by tdawson. Opened a year ago by tmz.
centos/ tmz/centpkg develop  into  develop

file modified
+1 -1
@@ -5,7 +5,7 @@ 

  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"

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.

LGTM - and it fixes it.
Thank you.

Pull-Request has been merged by tdawson

a year ago
Metadata