From 4de7a6ffb4fe18d8d9f60795a463865df28391e4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 25 Aug 2021 19:16:07 +0300 Subject: [PATCH] kiss: fix git --- kiss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index 4b23b88..5a7d67e 100755 --- a/kiss +++ b/kiss @@ -444,18 +444,18 @@ pkg_source_url() { } pkg_source_git() { - com=${1##*[@#]} - com=${com#${1%[#@]*}} + com=${2##*[@#]} + com=${com#${2%[#@]*}} log "$repo_name" "Checking out ${com:-FETCH_HEAD}" [ -d .git ] || git init - git remote set-url origin "${1%[#@]*}" 2>/dev/null || - git remote add origin "${1%[#@]*}" + git remote set-url origin "${2%[#@]*}" 2>/dev/null || + git remote add origin "${2%[#@]*}" # Only fetch latest changes if not [#]. - case $1 in *"#$com") ;; *) + case $2 in *"#$com") ;; *) git fetch -t --filter=tree:0 origin "$com" || git fetch -t esac