From: Nicolas Boisselier Date: Mon, 15 Jan 2018 16:52:36 +0000 (+0000) Subject: etc/profile.d/git.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=97b9abe141b8305c93a4625949d2c3f5101c514a;p=nb.git etc/profile.d/git.sh --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 292be9d7..41b29bbb 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 -E -e 's,^[^:/]+[:/],,' -e 's/\.git$//' + git config --local remote.origin.url | sed -E -e 's,^[^:/]+[:/],,' -e 's,/.*$,,' -e 's/\.git$//' } git_branch() {