tests/copy-src: always copy .git dir

This is required by a later commit that introduces flakes-based test
evaluation. Evaluating local flakes needs a repo dir.
This commit is contained in:
Erik Arvstedt 2022-10-22 19:37:50 +02:00
parent a87a59a86b
commit 5f1bb2a8fc
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 1 additions and 21 deletions

View file

@ -277,11 +277,6 @@ flake() {
nixosSearch() {
if ! checkFlakeSupport "nixosSearch"; then return; fi
if [[ $_nixBitcoinInCopiedSrc ]]; then
# flake-info requires that its target flake is under version control
. "$scriptDir/lib/create-git-repo.sh"
fi
if [[ $outLinkPrefix ]]; then
# Add gcroots for flake-info
nix build "$scriptDir/nixos-search#flake-info" -o "$outLinkPrefix-flake-info"