From 2c9cba1b93b333c460c89c17c24f31029c57eb5c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 1 May 2018 04:14:04 +0100 Subject: [PATCH] etc/profile.d/git.sh --- etc/profile.d/git.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index a7c8cb90..c26198f8 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -195,7 +195,8 @@ git_branch_create_push() { } git_name() { - git config --local remote.origin.url | sed -E -e 's,^[^:/]+[:/],,' -e 's,/.*$,,' -e 's/\.git$//' +# NB 01.05.18 git config --local remote.origin.url | sed -E -e 's,^[^:/]+[:/],,' -e 's,/.*$,,' -e 's/\.git$//' + git config --local remote.origin.url | sed -E -e 's,^[^:/]+[:/],,' -e 's,(/|\.git)$,,' -e 's,^.*/,,' } git_branch() { -- 2.47.3