diff options
author | merakor <cem@ckyln.com> | 2022-11-14 20:12:47 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2022-11-14 20:12:47 +0000 |
commit | a672ca6e340d85f8a347fdcd97d3c70b9e1abef5 (patch) | |
tree | 97516a8af3943d223d0c6ec009b1321adeba9a40 | |
parent | cef857340f575a78099fd175512f3557830f0d77 (diff) | |
download | cpt-a672ca6e340d85f8a347fdcd97d3c70b9e1abef5.tar.gz |
pkg_extract: fix git tag usage
FossilOrigin-Name: c002ccd97dd4d6be560815f8e262a10c1f860205c3f79db554257332da0be1ff
-rw-r--r-- | src/cpt-lib.in | 3 |
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" ;; |