fetchgit: don't shallow clone if deepClone is requested

fixes: https://github.com/NixOS/nixpkgs/issues/179788
This commit is contained in:
Emily 2023-07-01 00:07:06 +02:00
parent 5f705e4de5
commit ad94541662

View file

@ -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