How to use init.templateDir with gitea? #4427

Closed
opened 2025-11-02 05:50:22 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @gabyx on GitHub (Dec 2, 2019).

It seems that gitea overwrites githooks with its own default hooks when the repository is created over the web interface. This means I cannot have a global git config --global init.templateDir "path/to/hooks.

Is there a proper way of doing this?

  • Gitea version (master):
  • Git version: 2.24
Originally created by @gabyx on GitHub (Dec 2, 2019). It seems that gitea overwrites githooks with its own default hooks when the repository is created over the web interface. This means I cannot have a global `git config --global init.templateDir "path/to/hooks`. Is there a proper way of doing this? - Gitea version (master): - Git version: 2.24
Author
Owner

@lunny commented on GitHub (Dec 2, 2019):

Gitea will overwrite post-receive, pre-receiveand update files and create post-receive.d, pre-receive.d, update.d directories.

@lunny commented on GitHub (Dec 2, 2019): Gitea will overwrite `post-receive`, `pre-receive`and `update` files and create `post-receive.d`, `pre-receive.d`, `update.d` directories.
Author
Owner

@gabyx commented on GitHub (Dec 2, 2019):

Thx. It turned out, that I installed under root instead of the user git.

@gabyx commented on GitHub (Dec 2, 2019): Thx. It turned out, that I installed under `root` instead of the user `git`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4427