forked from kiss-community/kiss
kiss: Shallow clone git sources where possible. Also avoid pulling down tags. See #270
This commit is contained in:
parent
60c32c5fa2
commit
a4f7765f94
6
kiss
6
kiss
@ -454,10 +454,8 @@ pkg_source_git() {
|
||||
git remote set-url origin "${2%[#@]*}" 2>/dev/null ||
|
||||
git remote add origin "${2%[#@]*}"
|
||||
|
||||
git fetch -t origin "$com" ||
|
||||
git fetch -t
|
||||
|
||||
git -c advice.detachedHead=0 checkout "${com:-FETCH_HEAD}"
|
||||
git fetch --depth=1 origin "$com"
|
||||
git reset --hard FETCH_HEAD
|
||||
}
|
||||
|
||||
pkg_source_tar() {
|
||||
|
Loading…
Reference in New Issue
Block a user