aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index 61a7842..fd4b13e 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -561,7 +561,7 @@ pkg_extract() {
log "$1" "Cloning ${url%[@#]*}"; {
git init
git remote add origin "${url%[@#]*}"
- git fetch --depth=1 origin "$com" || git fetch
+ git fetch "${com:+-t}" --depth=1 origin "$com" || git fetch
git checkout "${com:-FETCH_HEAD}"
} || die "$1" "Failed to clone $src"
;;