aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
;;