From: Nicolas Boisselier Date: Mon, 15 Jan 2018 01:18:15 +0000 (+0000) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1675dbef36a5b41b7977962272cea8d01f416ef0;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 7ea9cdce..6156a3ee 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -199,7 +199,7 @@ git_branch_create_push() { } git_name() { - git config --local remote.origin.url|sed 's,^.*[:/]\([^:/\.]\+\)\(\.git\)\?$,\1,' + git config --local remote.origin.url | sed -E 's,^.*[:/]([^:/\.]+)(\.git)?$,\1,' } git_branch() {