diff --git a/.bash.d/git.sh b/.bash.d/git.sh index f71191ef..0ff5dacf 100644 --- a/.bash.d/git.sh +++ b/.bash.d/git.sh @@ -186,10 +186,12 @@ git_url_base(){ sed 's|^ssh://||; s|^https://.*@||; s|^https://||; + s|:[[:digit:]]*||; s/^git@ssh.dev.azure.com:v3/dev.azure.com/; s|^git@||; s|^|https://|; - s/\.git$//;' | + s/\.git$//; + ' | perl -pe 's/:(?!\/\/)/\//' }