]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
git: do not mix in_git_dir with eval{}
authorSimon McVittie <smcv@debian.org>
Thu, 5 Jan 2017 17:47:50 +0000 (17:47 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 9 Jan 2017 13:07:24 +0000 (13:07 +0000)
commit650445645430931bea5947a217fa425b0ca3b521
treed9ecc501520f5cd1a1c033f5cea4d7ab47be3ed9
parent99258ea40516ffb1e9b8d777f3a26f30bbe478c3
git: do not mix in_git_dir with eval{}

If we throw an exception (usually from run_or_die), in_git_dir won't
unshift the current directory from the stack. That's usually fine,
but in rcs_preprevert we catch exceptions and do some cleanup before
returning, for which we need the git directory to be the root and
not the temporary working tree.
IkiWiki/Plugin/git.pm