From a672ca6e340d85f8a347fdcd97d3c70b9e1abef5 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 14 Nov 2022 20:12:47 +0000 Subject: pkg_extract: fix git tag usage FossilOrigin-Name: c002ccd97dd4d6be560815f8e262a10c1f860205c3f79db554257332da0be1ff --- src/cpt-lib.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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" ;; -- cgit v1.2.3