]> 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 19:55:10 +0000 (19:55 +0000)
commitf082508d6d099f55b5ee783b753ff15f3843878d
tree68e34be7ebf0b08a3a783a39842adec354eff9f0
parentb6774bc6afac48e2c0a122647edc1485e7174a6e
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