lint: source: Validate URLs of Git references.
authorLudovic Courtès <ludo@gnu.org>
Sun, 12 Jul 2020 20:41:09 +0000 (22:41 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 12 Jul 2020 20:41:51 +0000 (22:41 +0200)
commitc10526672e515f07c92dc447bbc592808f67238e
tree26dc5ea7ed9de7fd77faa2956e800c7780d2c07d
parent7bbe4655a8726a7250837c01c2678d7bcc6262e6
lint: source: Validate URLs of Git references.

Until now the 'source' checker would look at URL for 'url-fetch' origins
but not for 'git-fetch' origins.

* guix/lint.scm (check-source): Add case for 'git-reference?'.
* tests/lint.scm ("source, git-reference: 301 -> 200"): New test.
guix/lint.scm
tests/lint.scm