We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f4303 commit 3dd4ec5Copy full SHA for 3dd4ec5
1 file changed
git_hooks/pre-commit
@@ -24,7 +24,7 @@ jar_base_dir="git_hooks/"
24
# https://github.com/pre-commit/pre-commit/blob/master/pre_commit/staged_files_only.py#L15
25
# Basically we just diff the unstaged changes, store the patch, and apply it later.
26
# In the future, we should consider migrating to using that library.
27
-staged_changes_diff=$(mktemp -t format_patch)
+staged_changes_diff=$(mktemp -t format_patch_XXXX)
28
git diff --ignore-submodules --binary --exit-code --no-color > $staged_changes_diff
29
if [ $? -eq 1 ]; then
30
echo "Found unstaged changes, storing in ${staged_changes_diff}"
0 commit comments