nix-super/src/libfetchers
Maximilian Bosch 1849e6a1f6
libfetchers/git: fix every occasion of a permission error
I'm afraid I missed a few problematic `git(1)`-calls while implementing
PR #6440, sorry for that! Upon investigating what went wrong, I realized
that I only tested against the "cached"-case by accident because my
git-checkout with my system's flake was apparently cached during my
debugging.

I managed to trigger the original issue again by running:

    $ git commit --allow-empty -m "tmp"
    $ sudo nixos-rebuild switch --flake .# -L --builders ''

Since `repoDir` points to the checkout that's potentially owned by
another user, I decided to add `--git-dir` to each call affecting
`repoDir`.

Since the `tmpDir` for the temporary submodule-checkout is created by
Nix itself, it doesn't seem to be an issue.

Sorry for that, it should be fine now.
2022-04-30 15:56:12 +02:00
..
attrs.cc Fix conversion from JSON to fetch attributes 2021-01-05 02:06:25 +00:00
attrs.hh fix error: 'optional' in namespace 'std' does not name a template type 2021-06-02 18:09:03 +08:00
cache.cc libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
cache.hh libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
fetch-settings.cc Move some stuff from Settings to a new FetchSettings. 2022-03-01 01:39:25 +00:00
fetch-settings.hh Point to new github oauth docs url 2022-03-06 17:01:14 -06:00
fetchers.cc don't assume that rev is a SHA1 hash 2022-04-07 19:49:47 +02:00
fetchers.hh libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00
git.cc libfetchers/git: fix every occasion of a permission error 2022-04-30 15:56:12 +02:00
github.cc Don't partial match sourcehut refs 2022-03-19 11:04:04 -03:00
indirect.cc InputScheme::fetch(): Return a StorePath instead of a Tree 2022-02-16 11:14:01 +01:00
local.mk Don't overwrite user provided lib*_LDFLAGS 2021-08-25 08:59:19 -07:00
mercurial.cc Avoid fmt when constructor already does it 2022-04-19 01:44:11 +00:00
path.cc libfetchers: remove obsolete filesystem #include 2022-03-15 12:32:11 +01:00
registry.cc Move some stuff from Settings to a new FetchSettings. 2022-03-01 01:39:25 +00:00
registry.hh Style tweaks 2021-07-07 10:02:55 +02:00
tarball.cc libfetchers: Rename immutable -> locked 2022-02-24 18:09:00 +01:00