From 0d465189c89af2eafa6765915ccbdaa58d809d75 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 14 Nov 2022 20:20:03 +0000 Subject: pkg_vcs_clone_git(): fix arguments FossilOrigin-Name: 5bf4e55d15a14b2366bc65d77683db22bf89a511b4f6c7ff8e292aa5376050c3 --- src/cpt-lib.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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}" -- cgit v1.2.3