git:https-and-ssh: Use shorter variant to get url
This commit is contained in:
@@ -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##*@}"
|
||||
|
||||
Reference in New Issue
Block a user