lix/src
Bjørn Forsman edd606ae62 fetchGit: don't prefix "refs/heads/" on ref = "HEAD"
This fixes builtins.fetchGit { url = ...; ref = "HEAD"; }, that works in
stable nix (v2.3.10), but is broken in nix master:

  $ ./result/bin/nix repl
  Welcome to Nix version 2.4pre19700101_dd77f71. Type :? for help.

  nix-repl> builtins.fetchGit { url = "https://github.com/NixOS/nix"; ref = "HEAD"; }
  fetching Git repository 'https://github.com/NixOS/nix'fatal: couldn't find remote ref refs/heads/HEAD
  error: program 'git' failed with exit code 128

The documentation for builtins.fetchGit says ref = "HEAD" is the
default, so it should also be supported to explicitly pass it.

I came across this issue because poetry2nix can use ref = "HEAD" in some
situations.

Fixes #4674.
2021-03-30 11:21:38 +02:00
..
build-remote Merge pull request #4477 from NixOS/ca/build-remote 2021-02-26 16:54:44 +01:00
cpptoml
libcmd --override-input: Imply --no-write-lock-file 2021-03-16 16:53:39 +01:00
libexpr Fix some typos 2021-03-26 16:14:38 +01:00
libfetchers fetchGit: don't prefix "refs/heads/" on ref = "HEAD" 2021-03-30 11:21:38 +02:00
libmain ProgressBar: Respect verbosity level 2021-03-19 17:56:39 +01:00
libstore LocalBinaryCacheStore::upsertFile(): Fix race 2021-03-26 17:10:15 +01:00
libutil Fix some typos 2021-03-26 16:14:38 +01:00
nix Fix some typos 2021-03-26 16:14:38 +01:00
nix-build nix-build: set execfail 2021-03-04 18:54:45 -08:00
nix-channel Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-collect-garbage Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-copy-closure Use RealisedPaths in copyPaths 2021-02-25 17:18:48 +01:00
nix-env Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-instantiate Initialize plugins after handling initial command line flags 2021-02-24 08:22:17 -05:00
nix-store Clean up serialization for BuildResult 2021-03-22 14:57:41 +00:00
resolve-system-dependencies Fix macOS build 2021-01-21 12:46:22 +01:00