lix/src
Maximilian Bosch c169ea5904
builtins.fetchGit: Fix build when fetching a git worktree
Worktrees[1] are a feature of git which allow you to check out a ref in
a different directory.

While playing around with flakes I realized that git repositories in a
worktree checkout break when trying to build a flake:

```
$ git worktree add ../nixpkgs-flakes nixpkgs-flakes
$ cd ../nixpkgs-flakes
$ nix build .#hello
error: opening directory '/home/ma27/Projects/nixpkgs-flakes/.git/refs/heads': Not a directory
```

This issue has been fixed by determining with `git rev-parse --git-common-dir`
where the actual `.git` directory is.

Please note that this issue only exists on the `flakes` branch, fetching
worktree checkouts with Nix master seems to work fine.

[1] https://git-scm.com/docs/git-worktree
2020-02-19 14:00:36 +01:00
..
build-remote Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
libexpr Fix build 2020-02-14 22:45:33 +01:00
libmain Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
libstore builtins.fetchGit: Fix build when fetching a git worktree 2020-02-19 14:00:36 +01:00
libutil Merge remote-tracking branch 'origin/master' into flakes 2020-02-14 22:42:35 +01:00
nix nix eval-hydra-jobs: Support flakes 2020-02-14 23:23:41 +01:00
nix-build findAlongAttrPath(): Return position 2020-02-07 14:08:24 +01:00
nix-channel Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-collect-garbage Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-copy-closure Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-daemon Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-env findAlongAttrPath(): Return position 2020-02-07 14:08:24 +01:00
nix-instantiate findAlongAttrPath(): Return position 2020-02-07 14:08:24 +01:00
nix-prefetch-url findAlongAttrPath(): Return position 2020-02-07 14:08:24 +01:00
nix-store nix flake list-inputs: Pretty-print the tree 2020-01-31 14:09:27 +01:00
resolve-system-dependencies Make the Store API more type-safe 2019-12-10 22:06:05 +01:00