git:https-and-ssh: Use shorter variant to get url

This commit is contained in:
2023-01-21 01:57:37 +01:00
parent f0194794f9
commit c8b634b81f

View File

@@ -6,7 +6,7 @@
GIT="git"
origin="$($GIT remote -v | grep -Po '(?<=^origin\t).*(?= \(fetch\)$)')"
origin="$($GIT remote get-url origin)"
if [ "${origin##https://}" = "$origin" ]; then
https_origin="${origin##*@}"