fetchgit: don't shallow clone if deepClone is requested
fixes: https://github.com/NixOS/nixpkgs/issues/179788
This commit is contained in:
parent
5f705e4de5
commit
ad94541662
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue