mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-11 05:51:57 +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>
13 lines
416 B
Bash
Executable file
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"
|
|
:
|