]> git.wh0rd.org Git - home.git/commitdiff
update gentoo git url
authorMike Frysinger <vapier@gentoo.org>
Sun, 24 May 2015 04:10:24 +0000 (00:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 24 May 2015 04:10:24 +0000 (00:10 -0400)
.profile.d/gentoo.sh

index d656210745e79d2239d2721e1cbe0e1c85c413dc..edfa08aee02c64d58473ffa2df2224ad50516889 100644 (file)
@@ -63,7 +63,7 @@ _cvs_gentoo_url() {
        unset _cvs_gentoo_url
 }
 git_gentoo_url() {
-       local repo=$(git config remote.origin.url | sed 's:.*git.overlays.gentoo.org/::')
+       local repo=$(git config remote.origin.url | sed 's:.*git[.a-z]*.gentoo.org/::')
        git log -n3 ${1:-HEAD} | \
                sed "s,^commit ,http://gitweb.gentoo.org/${repo}/commit/?id=,"
 }