aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-11-14 20:12:47 +0000
committermerakor <cem@ckyln.com>2022-11-14 20:12:47 +0000
commita672ca6e340d85f8a347fdcd97d3c70b9e1abef5 (patch)
tree97516a8af3943d223d0c6ec009b1321adeba9a40 /src
parentcef857340f575a78099fd175512f3557830f0d77 (diff)
downloadcpt-a672ca6e340d85f8a347fdcd97d3c70b9e1abef5.tar.gz
pkg_extract: fix git tag usage
FossilOrigin-Name: c002ccd97dd4d6be560815f8e262a10c1f860205c3f79db554257332da0be1ff
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index d8fd262..255a9e8 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -859,6 +859,9 @@ pkg_extract() {
backend=${src%%+*}
url=${src##"${backend}"+} com=${url##*[@#]} com=${com#"${url%[@#]*}"}
+ # Add back @ to com
+ case $url in *@*) com=@$com; esac
+
log "$1" "Cloning ${url%[#@]*}"
"pkg_vcs_clone_$backend" "${url%[#@]*}" "$com"
;;