From 87f8d37be5cf98b6bcdbe68a2ff749a14fb50278 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 2 Mar 2022 22:31:50 +0100 Subject: [PATCH] git backend ignore replace objects (#18979) (#18980) Co-authored-by: zeripath --- modules/git/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/git/command.go b/modules/git/command.go index 3cf85c2d8520..f2cae52b6f2b 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -163,6 +163,8 @@ func (c *Command) RunWithContext(rc *RunContext) error { fmt.Sprintf("LC_ALL=%s", DefaultLocale), // avoid prompting for credentials interactively, supported since git v2.3 "GIT_TERMINAL_PROMPT=0", + // ignore replace references (https://git-scm.com/docs/git-replace) + "GIT_NO_REPLACE_OBJECTS=1", ) // TODO: verify if this is still needed in golang 1.15