Files
emacs-conf/lisp/magit/githooks/magit-run-git-hook
2026-06-27 11:34:21 +02:00

9 lines
184 B
Bash
Executable File

#!/usr/bin/env bash
if [ -n "$MAGIT_HOOK_EDITOR" ]
then
for arg in "$@"; do args+="\"$arg\""; done
$MAGIT_HOOK_EDITOR --eval "(magit-run-git-hook ${args[@]})"
else
true
fi