aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/git/command.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/git/command.go b/modules/git/command.go
index ba982f3180..649d9cf249 100644
--- a/modules/git/command.go
+++ b/modules/git/command.go
@@ -158,6 +158,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",
)
cmd.Dir = rc.Dir