Fixed up port removal so it works
This commit is contained in:
parent
8434b851e8
commit
564835b4ac
2
pre-push
2
pre-push
@ -7,7 +7,7 @@ url="${2#*@}"
|
|||||||
url="${url%.git}"
|
url="${url%.git}"
|
||||||
url="${url#*://}"
|
url="${url#*://}"
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
url="${url/:([0-9]+)//}"
|
url="${url/:+([0-9])/}"
|
||||||
url="https://${url}"
|
url="https://${url}"
|
||||||
branch="$(git branch | grep "\* ")"
|
branch="$(git branch | grep "\* ")"
|
||||||
branch="${branch:2}"
|
branch="${branch:2}"
|
||||||
|
Loading…
Reference in New Issue
Block a user