Fixed some errors in url handling.

This commit is contained in:
stormdragon2976 2023-05-26 10:08:56 -04:00
parent e79eaac3ec
commit 8434b851e8
1 changed files with 3 additions and 2 deletions

View File

@ -5,9 +5,10 @@
# url is $2
url="${2#*@}"
url="${url%.git}"
url="${url#*://}"
shopt -s extglob
url="${url/:*([0-9])//}"
url="https://${url//\/\///}"
url="${url/:([0-9]+)//}"
url="https://${url}"
branch="$(git branch | grep "\* ")"
branch="${branch:2}"
commit="$(git log -1 --pretty=%B)"