]> git.wh0rd.org Git - home.git/commitdiff
vcs-url: fix gensub usage
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Jan 2018 21:36:36 +0000 (16:36 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 7 Jan 2018 21:36:36 +0000 (16:36 -0500)
.bin/vcs-url

index f2cd3c9a3bd187eeeb8c2343cdcec7b6e8cf0fd5..3c1aa8ce04b35d88b116b053d0c63ce706828c94 100755 (executable)
@@ -125,7 +125,7 @@ svn_url() {
                svn info | \
                awk '{
                        if ($1 == "URL:") {
-                               URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/,"\\1","");
+                               URL = "http://sources.gentoo.org/" gensub(/.*svnroot\/([^/]*).*/, "\\1", 1);
                        } else if ($1 == "Revision:") {
                                rev = $2
                                URL = URL "?rev=" (rev + 1) "&view=rev"