We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e859042 commit 7f8d9caCopy full SHA for 7f8d9ca
git/test/test_index.py
@@ -690,6 +690,9 @@ def make_paths():
690
index.add(files, write=True)
691
if os.name != 'nt':
692
hp = hook_path('pre-commit', index.repo.git_dir)
693
+ hpd = os.path.dirname(hp)
694
+ if not os.path.isdir(hpd):
695
+ os.mkdir(hpd)
696
with open(hp, "wt") as fp:
697
fp.write("#!/usr/bin/env sh\necho stdout; echo stderr 1>&2; exit 1")
698
# end
0 commit comments