Files
nix/tests
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
..
2020-04-14 18:45:06 +02:00
2020-03-30 15:30:19 +02:00
2019-12-13 19:05:26 +01:00
2018-08-06 14:06:54 +02:00
2014-08-21 21:50:19 +02:00
2020-04-14 18:45:06 +02:00
2020-04-14 18:45:06 +02:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2018-01-16 19:23:18 +01:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2019-09-04 12:52:54 +02:00
2014-08-21 21:50:19 +02:00
2016-09-12 13:40:07 +02:00
2019-03-10 01:50:33 +01:00
2006-07-21 13:21:43 +00:00
2018-12-13 14:30:52 +01:00
2019-07-25 09:44:01 -04:00
2014-08-21 21:50:19 +02:00
2018-02-13 14:26:19 +00:00
2019-11-05 11:12:25 +01:00
2018-01-16 19:23:18 +01:00
2018-01-16 19:23:18 +01:00
2019-11-26 20:12:15 +01:00
2019-11-05 11:12:25 +01:00
2018-01-16 19:23:18 +01:00
2018-02-25 16:40:05 -06:00
2016-04-11 16:20:15 +02:00
2019-11-05 11:12:25 +01:00
2020-05-01 12:17:53 +02:00
2020-05-01 12:17:53 +02:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2019-07-02 11:18:36 -04:00
2012-12-04 14:47:50 +01:00
2012-12-04 14:47:50 +01:00