forked from kiss-community/kiss
kiss: fetch tags too
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
parent
d85028e0f1
commit
130e90b137
2
kiss
2
kiss
@ -253,7 +253,7 @@ 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 --tags --depth=1 origin "$com" || git fetch --tags
|
||||||
git checkout "${com:-FETCH_HEAD}"
|
git checkout "${com:-FETCH_HEAD}"
|
||||||
} || die "$1" "Failed to clone $src"
|
} || die "$1" "Failed to clone $src"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user