aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-11-14 20:20:03 +0000
committermerakor <cem@ckyln.com>2022-11-14 20:20:03 +0000
commit0d465189c89af2eafa6765915ccbdaa58d809d75 (patch)
treef0be2a3f26fe51b6d491470e75ceb85a915afd72 /src
parente013226fb50f62eaf4d43eb01f8b007a78fa6a24 (diff)
downloadcpt-0d465189c89af2eafa6765915ccbdaa58d809d75.tar.gz
pkg_vcs_clone_git(): fix arguments
FossilOrigin-Name: 5bf4e55d15a14b2366bc65d77683db22bf89a511b4f6c7ff8e292aa5376050c3
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 0616622..5a0d463 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1845,7 +1845,7 @@ pkg_vcs_clone_git() {
git init
git remote add origin "${1%[#@]*}"
case $2 in
- @*) git fetch -t --depth=1 origin "${2#@}" || git fetch ;;
+ @*) git fetch -t --depth=1 origin "${2#@}" || git fetch; set -- "$1" "${2#@}" ;;
*) git fetch --depth=1 origin "$2" || git fetch
esac
git checkout "${2:-FETCH_HEAD}"