Git template (git hook) not working #11529

Open
opened 2025-11-02 09:40:23 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @OndrejIT on GitHub (Aug 24, 2023).

Description

Hello,
I have created a git repository as a template where I have modified some git hooks (post-update).
Then I create new repositories, when I selected Template my template repositories.

I would have expected the post-update script to appear in the new repository, but it didn't, the repository was created with the new githooks instead of being copied from the created template repository

Gitea Version

1.20.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Docker

How are you running Gitea?

yourself, oficial docker image

Database

SQLite

Originally created by @OndrejIT on GitHub (Aug 24, 2023). ### Description Hello, I have created a git repository as a template where I have modified some git hooks (post-update). Then I create new repositories, when I selected Template my template repositories. I would have expected the post-update script to appear in the new repository, but it didn't, the repository was created with the new githooks instead of being copied from the created template repository ### Gitea Version 1.20.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Docker ### How are you running Gitea? yourself, oficial docker image ### Database SQLite
GiteaMirror added the type/enhancementtype/proposal labels 2025-11-02 09:40:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11529