Skip to content

Commit 87f8d37

Browse files
6543zeripath
andauthored
git backend ignore replace objects (#18979) (#18980)
Co-authored-by: zeripath <[email protected]>
1 parent f4b96c1 commit 87f8d37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/git/command.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ func (c *Command) RunWithContext(rc *RunContext) error {
163163
fmt.Sprintf("LC_ALL=%s", DefaultLocale),
164164
// avoid prompting for credentials interactively, supported since git v2.3
165165
"GIT_TERMINAL_PROMPT=0",
166+
// ignore replace references (https://git-scm.com/docs/git-replace)
167+
"GIT_NO_REPLACE_OBJECTS=1",
166168
)
167169

168170
// TODO: verify if this is still needed in golang 1.15

0 commit comments

Comments
 (0)