]> git.scottworley.com Git - pinch/commit - git-pre-commit-hook
Fix nested-git issues in pre-commit hook
authorScott Worley <scottworley@scottworley.com>
Fri, 8 Dec 2023 03:31:09 +0000 (19:31 -0800)
committerScott Worley <scottworley@scottworley.com>
Fri, 8 Dec 2023 03:31:09 +0000 (19:31 -0800)
commite99a249b5598677db990e0943a214bb0bbd9b68e
treecc17d1a7d59629fb065a88c6afee394ab91a9d14
parentb573564a47adba410749d11f28efd2a84d564bbf
Fix nested-git issues in pre-commit hook

This has been wonky before (eg: 'git add foo; git commit' would work
while 'git commit foo' would not), but between 2.40.1 and 2.42.0
something about git changed such that the pre-commit completely stopped
working.

So now we properly clean the tests' git invocations' environment.
Changelog
git-pre-commit-hook