From ad945416620b651dce0857c75377d979e7a8ac71 Mon Sep 17 00:00:00 2001 From: Emily <102429049+emily-is-my-username@users.noreply.github.com> Date: Sat, 1 Jul 2023 00:07:06 +0200 Subject: [PATCH] fetchgit: don't shallow clone if deepClone is requested fixes: https://github.com/NixOS/nixpkgs/issues/179788 --- pkgs/build-support/fetchgit/nix-prefetch-git | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index ae2e3600800b..e3fa2cf0bf90 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -161,6 +161,7 @@ checkout_hash(){ hash=$(hash_from_ref "$ref") fi + [[ -z "$deepClone" ]] && \ clean_git fetch ${builder:+--progress} --depth=1 origin "$hash" || \ clean_git fetch -t ${builder:+--progress} origin || return 1