Fixed some errors in url handling.
This commit is contained in:
1 parent
e79eaac3ec
commit
8434b851e8
1 file changed
+3
-2
@@ -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)"
|
||||
|
||||
Reference in new issue
Block a user