]> 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>
Wed, 11 Jan 2017 15:33:27 +0000 (15:33 +0000)
commitaa32aa23c0a62129e62d01a67927e7089e4f5708
treeff47d8a7afa2c4f77ed8696cdfd12a6695d3cc57
parent382b18c3c5a2125ba55cc6769f15ecfefbbca074
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.

(cherry picked from commit 650445645430931bea5947a217fa425b0ca3b521)
IkiWiki/Plugin/git.pm