From: Nicolas Boisselier Date: Tue, 1 May 2018 03:14:04 +0000 (+0100) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=2c9cba1b93b333c460c89c17c24f31029c57eb5c;p=nb.git etc/profile.d/git.sh --- 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() {