]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/git.sh
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 15 Jan 2018 16:52:36 +0000 (16:52 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 15 Jan 2018 16:52:36 +0000 (16:52 +0000)
etc/profile.d/git.sh

index 292be9d7339590c7bf536d05a198fe7d3f9e2912..41b29bbb951d2849c3d864fba8356ad942706e21 100644 (file)
@@ -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() {