kiss: git fixes
This commit is contained in:
parent
65b8332eac
commit
bdabaee422
4
kiss
4
kiss
|
@ -256,8 +256,8 @@ pkg_extract() {
|
||||||
log "$1" "Cloning ${url%[#@]*}"; {
|
log "$1" "Cloning ${url%[#@]*}"; {
|
||||||
git init
|
git init
|
||||||
git remote add origin "${url%[#@]*}"
|
git remote add origin "${url%[#@]*}"
|
||||||
git fetch --depth=1 origin "$com" || git fetch
|
git fetch -t --depth 1 origin "$com" || git fetch -t
|
||||||
git checkout "${com:-FETCH_HEAD}"
|
git -c advice.detachedHead=0 checkout "${com:-FETCH_HEAD}"
|
||||||
} || die "$1" "Failed to clone $src"
|
} || die "$1" "Failed to clone $src"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue