]> sipb.mit.edu Git - sipb-www.git/blobdiff - ikiwiki.setup
Better gitweb URLs
[sipb-www.git] / ikiwiki.setup
index 245d7df74811213d7f4f5c1d37d13ca689e2c548..ffb97c2413711826fd926b5cb6e1617d267435b9 100644 (file)
@@ -246,9 +246,9 @@ if ($ENV{"IKIWIKI_PREVIEW_OUTPUT"}) {
        # unix users whose commits should be checked by the pre-receive hook
        #untrusted_committers => [],
        # gitweb url to show file history ([[file]] substituted)
-       historyurl => '/gitweb.cgi?p=wiki.git;a=history;f=[[file]]',
+       historyurl => '/gitweb.cgi/wiki.git/history/HEAD:/[[file]]',
        # gitweb url to show a diff ([[file]], [[sha1_to]], [[sha1_from]], [[sha1_commit]], and [[sha1_parent]] substituted)
-       diffurl => '/gitweb.cgi?p=wiki.git;a=commitdiff;h=[[sha1_commit]]',
+       diffurl => '/gitweb.cgi/wiki.git/blobdiff/[[sha1_parent]]..[[sha1_commit]]:/[[file]]',
        # where to pull and push changes (set to empty string to disable)
        #gitorigin_branch => 'origin',
        # branch that the wiki is stored in