diff options
Diffstat (limited to 'release.nix')
-rw-r--r-- | release.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release.nix b/release.nix index 5a5a1226fe2c..4459bf165a50 100644 --- a/release.nix +++ b/release.nix @@ -36,7 +36,9 @@ let postUnpack = '' # Clean up when building from a working tree. - (cd $sourceRoot && (git ls-files -o | xargs -r rm -v)) + if [[ -d $sourceRoot/.git ]]; then + git -C $sourceRoot clean -fd + fi ''; preConfigure = '' |