Package: lintian
Version: 2.5.72
Severity: wishlist
Recent git versions give a warning when redirecting URLs. Salsa redirects git
to URLs ending in ".git/" and redirects browsers to the
URL not ending in ".git/" or ".git".
Accordingly, the Vcs-Git field should end in ".git" or ".git/" and the
Vcs-Browser field should not end in ".git" or ".git/".
In addition the salsa web interface prints URLs ending in ".git" rather
than URLs ending in ".git/" so the former should be preferred in any
lintian output.
I have no idea how salsa deals with repository names that end in
".git", but I guess git URLs will be something like ".../foo.git.git".
$ git clone https://salsa.debian.org/debian/wiki.debian.org ; rm -rf
wiki.debian.org
Cloning into 'wiki.debian.org'...
warning: redirecting to https://salsa.debian.org/debian/wiki.debian.org.git/
remote: Counting objects: 1351, done.
remote: Compressing objects: 100% (553/553), done.
remote: Total 1351 (delta 721), reused 1340 (delta 717)
Receiving objects: 100% (1351/1351), 195.20 KiB | 112.00 KiB/s, done.
Resolving deltas: 100% (721/721), done.
$ git clone https://salsa.debian.org/debian/wiki.debian.org.git ; rm -rf
wiki.debian.org
Cloning into 'wiki.debian.org'...
remote: Counting objects: 1351, done.
remote: Compressing objects: 100% (553/553), done.
remote: Total 1351 (delta 721), reused 1340 (delta 717)
Receiving objects: 100% (1351/1351), 195.20 KiB | 164.00 KiB/s, done.
Resolving deltas: 100% (721/721), done.
$ wget https://salsa.debian.org/debian/wiki.debian.org.git ; rm -f
wiki.debian.org*
--2018-01-30 14:27:34-- https://salsa.debian.org/debian/wiki.debian.org.git
Resolving salsa.debian.org (salsa.debian.org)... 209.87.16.44,
2607:f8f0:614:1::1274:44
Connecting to salsa.debian.org (salsa.debian.org)|209.87.16.44|:443...
connected.
HTTP request sent, awaiting response... 302 Found
Location: https://salsa.debian.org/debian/wiki.debian.org [following]
--2018-01-30 14:27:36-- https://salsa.debian.org/debian/wiki.debian.org
Reusing existing connection to salsa.debian.org:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘wiki.debian.org.git’
wiki.debian.org.git[ <=>
] 28.97K
103KB/sin 0.3s
2018-01-30 14:27:36 (103 KB/s) - ‘wiki.debian.org.git’ saved [29668]
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part