frostyx / copr / copr

Forked from copr/copr 7 years ago
Clone

bb6f6fb rpmbuild: dist-git-client: strip trailing / from clone url

Authored and Committed by praiskup 2 years ago
    rpmbuild: dist-git-client: strip trailing / from clone url
    
    Clone "url" in .git/config can have trailing slash, like '..foo.git/'.
    This would be a valid URL, but without stripping the trailing slash(es)
    we would mistakenly calculate the namespace[] array (off-by-one after
    the url.split("/"))
    
    Merges: #2350