kiss: git fixes

This commit is contained in:
Dylan Araps 2020-11-06 08:38:36 +02:00
parent 65b8332eac
commit bdabaee422
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -256,8 +256,8 @@ pkg_extract() {
log "$1" "Cloning ${url%[#@]*}"; {
git init
git remote add origin "${url%[#@]*}"
git fetch --depth=1 origin "$com" || git fetch
git checkout "${com:-FETCH_HEAD}"
git fetch -t --depth 1 origin "$com" || git fetch -t
git -c advice.detachedHead=0 checkout "${com:-FETCH_HEAD}"
} || die "$1" "Failed to clone $src"
;;