mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-30 05:46:09 +01:00
077160b838
Backport #24148 `repoCtx.CommitsCount` is not reliably the commit count of the default branch (Repository.GetCommitsCount depends on what is currently displayed). _contributed in the context of @forgejo_ --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
14 lines
416 B
Bash
Executable file
14 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"
|
|
:
|