1
0
Fork 0

nvim: Add --no-deep-clone to plugin updater

This commit is contained in:
Daniel Kempkens 2022-02-15 10:37:03 +01:00
parent 979af6dcac
commit 2b937175db

View file

@ -38,9 +38,9 @@ for plugin in "${plugin_array[@]}"; do
name="$(echo "$repo" | tr [.] '-')"
if [ -z "$branch" ]; then
src="$(nix-prefetch-github --nix --fetch-submodules "$owner" "$repo" 2>/dev/null | tail -n +4)"
src="$(nix-prefetch-github --nix --fetch-submodules --no-deep-clone "$owner" "$repo" 2>/dev/null | tail -n +4)"
else
src="$(nix-prefetch-github --nix --fetch-submodules --rev "$branch" "$owner" "$repo" 2>/dev/null | tail -n +4)"
src="$(nix-prefetch-github --nix --fetch-submodules --no-deep-clone --rev "$branch" "$owner" "$repo" 2>/dev/null | tail -n +4)"
fi
rev="$(echo "$src" | grep rev | cut -d '"' -f 2)"