forgejo/modules/git/tests/repos/repo4_submodules/hooks/pre-merge-commit.sample
Steffen Schröter d4c2ebafde Inherit submodules from template repository content
Signed-off-by: Steffen Schröter <steffen@vexar.de>
2021-06-24 21:17:16 +02:00

13 lines
416 B
Bash
Executable file

#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git merge" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message to
# stderr if it wants to stop the merge commit.
#
# To enable this hook, rename this file to "pre-merge-commit".
. git-sh-setup
test -x "$GIT_DIR/hooks/pre-commit" &&
exec "$GIT_DIR/hooks/pre-commit"
: