From: Joey Hess Date: Tue, 7 Feb 2012 06:59:05 +0000 (-0400) Subject: fix display of page name in recentchanges after a revert X-Git-Tag: 3.20120203~171 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/1b6c1895784db37438ab51a4aebb366aa2e8009d?ds=sidebyside;hp=1b6c1895784db37438ab51a4aebb366aa2e8009d fix display of page name in recentchanges after a revert When the wiki is in a subdir of the git repo, a web revert would show in recentchanges as eg, doc/index, instead of just index. This happened because decode_git_file caches a $prefix that is dependant on the $git_dir setting, and the revert code runs with a different $git_dir, which polluted the $prefix for later. Fix this by adding a with_git_dir that juggles the variables properly. ---