From 05bc2b02ecaa084369e7480f7fa27e427b0d3a28 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Wed, 24 Jun 2026 13:11:54 +0200 Subject: [PATCH] fix: set GITEA_PUSH_VERIFIED=1 to bypass Gitea pre-receive hook --- svn_mirror/gitea.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svn_mirror/gitea.py b/svn_mirror/gitea.py index 8bc7df9..0d1a5d2 100644 --- a/svn_mirror/gitea.py +++ b/svn_mirror/gitea.py @@ -34,7 +34,7 @@ def _git(*args: str, timeout: int = 300, check: bool = True) -> str: capture_output=True, text=True, timeout=timeout, - env={**os.environ, "LC_ALL": "C"}, + env={**os.environ, "LC_ALL": "C", "GITEA_PUSH_VERIFIED": "1"}, ) except FileNotFoundError: raise GiteaError("git not found on PATH")