Files
lix/tests
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
..
2018-05-30 13:28:01 +02:00
2019-12-13 19:05:26 +01:00
2018-08-06 14:06:54 +02:00
2017-05-02 15:46:10 +02:00
2014-08-21 21:50:19 +02:00
2019-08-02 10:48:15 -04:00
2020-02-01 09:30:55 +01:00
2016-08-10 18:05:35 +02:00
2018-02-13 14:26:19 +00:00
2014-08-21 21:50:19 +02:00
2018-02-03 10:08:05 +01:00
2019-11-27 00:05:30 +01: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
2020-01-22 00:25:17 +01:00
2006-07-21 13:21:43 +00:00
2018-12-13 14:30:52 +01:00
2020-01-28 16:34:37 +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-27 00:05:30 +01:00
2018-01-16 19:23:18 +01:00
2019-11-27 00:05:30 +01:00
2019-11-26 20:12:15 +01:00
2018-01-16 19:23:18 +01:00
2019-11-27 00:05:30 +01:00
2017-11-20 18:36:36 +01:00
2018-02-25 16:40:05 -06:00
2019-04-08 16:11:36 +02:00
2016-04-11 16:20:15 +02:00
2007-08-13 13:15:02 +00:00
2016-10-19 15:19:38 +02:00
2020-02-12 10:33:52 +01: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