summaryrefslogtreecommitdiffstats
path: root/test/repos/pre_commit_hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/repos/pre_commit_hook.sh')
-rwxr-xr-xtest/repos/pre_commit_hook.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/repos/pre_commit_hook.sh b/test/repos/pre_commit_hook.sh
index 1c24bf19f..f1b76b56a 100755
--- a/test/repos/pre_commit_hook.sh
+++ b/test/repos/pre_commit_hook.sh
@@ -2,6 +2,9 @@
set -ex; rm -rf repo; mkdir repo; cd repo
git init
+git config user.email "test@example.com"
+git config user.name "Lazygit Tester"
+
cp ../extras/pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit