forked from kiss-community/kiss
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%[#@]*}"; {
|
||||
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"
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user