lix/src/libfetchers
Nikola Knezevic 77007d4eab Improve ref validity checking in fetchGit
The previous regex was too strict and did not match what git was allowing. It
could lead to `fetchGit` not accepting valid branch names, even though they
exist in a repository (for example, branch names containing `/`, which are
pretty standard, like `release/1.0` branches).

The new regex defines what a branch name should **NOT** contain. It takes the
definitions from `refs.c` in https://github.com/git/git and `git help
check-ref-format` pages.

This change also introduces a test for ref name validity checking, which
compares the result from Nix with the result of `git check-ref-format --branch`.
2020-05-30 12:29:35 +02:00
..
attrs.cc Add 'path' fetcher 2020-04-07 09:08:51 +02:00
attrs.hh Add 'path' fetcher 2020-04-07 09:08:51 +02:00
cache.cc Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
cache.hh Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
fetchers.cc Respect the narHash attribute in more input types 2020-04-07 09:09:18 +02:00
fetchers.hh Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
git.cc Improve ref validity checking in fetchGit 2020-05-30 12:29:35 +02:00
github.cc after flake rebase 2020-04-08 22:26:57 +02:00
local.mk Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00
mercurial.cc Change remaining bools with FileIngestionMethod 2020-05-26 11:32:41 -04:00
path.cc Path fetcher: Fix store path name 2020-04-22 15:27:06 +02:00
tarball.cc Change remaining bools with FileIngestionMethod 2020-05-26 11:32:41 -04:00
tree-info.cc Change remaining bools with FileIngestionMethod 2020-05-26 11:32:41 -04:00
tree-info.hh Backport libfetchers from the flakes branch 2020-04-07 09:03:14 +02:00