From 1675dbef36a5b41b7977962272cea8d01f416ef0 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 15 Jan 2018 01:18:15 +0000 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.47.3