mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
exportGit: Don't clone local repositories
This ensures that commands like 'nix flake info /my/nixpkgs' don't copy a gigabyte of crap to ~/.cache/nix. Fixes #60.
This commit is contained in:
parent
160ce18a0e
commit
0cbda84f5b
5 changed files with 88 additions and 54 deletions
|
@ -9,6 +9,8 @@ clearStore
|
|||
|
||||
repo=$TEST_ROOT/git
|
||||
|
||||
export _NIX_FORCE_HTTP=1
|
||||
|
||||
rm -rf $repo ${repo}-tmp $TEST_HOME/.cache/nix/gitv2
|
||||
|
||||
git init $repo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue