Skip to content

Commit

Permalink
Fix handling of git@*:*.git URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonrichert committed Jun 19, 2023
1 parent 60d478e commit 7741929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/.znap.clone.task
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private server=$1 url=$2
local gitdir=''
..znap.repos-dir

local -P name=${${url%%(|/).git}:t2}
local -P name=${${${url##git@*.*:}%%(|/).git}:t2}
private new= old=$gitdir/${name:t}

if [[ -d $old ]]; then
Expand Down

0 comments on commit 7741929

Please sign in to comment.