lix/src
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
..
build-remote Remove global -I flags 2020-03-30 15:30:19 +02:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
error-demo comments 2020-04-08 09:56:10 -06:00
libexpr Rename some variables named “recursive” to “method” 2020-05-27 13:21:26 -05:00
libfetchers Improve ref validity checking in fetchGit 2020-05-30 12:29:35 +02:00
libmain Flag: Use designated initializers 2020-05-04 22:40:19 +02:00
libstore Rename some variables named “recursive” to “method” 2020-05-27 13:21:26 -05:00
libutil Improve ref validity checking in fetchGit 2020-05-30 12:29:35 +02:00
nix Use FileIngestionMethod for nix hash 2020-05-27 23:50:11 -04:00
nix-build Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-channel after flake rebase 2020-04-08 22:26:57 +02:00
nix-collect-garbage Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-copy-closure Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-daemon Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-env Tweak warning message 2020-04-28 17:56:01 +02:00
nix-instantiate Remove global -I flags 2020-03-30 15:30:19 +02:00
nix-prefetch-url Merge remote-tracking branch 'origin/master' into enum-FileIngestionMethod 2020-05-26 11:14:08 -04:00
nix-store Merge remote-tracking branch 'upstream/master' into enum-FileIngestionMethod 2020-03-30 18:16:44 -04:00
resolve-system-dependencies Fix macOS build 2020-03-30 17:00:40 +02:00