Skip to content

Commit

Permalink
git backend ignore replace objects (#18979) (#18980)
Browse files Browse the repository at this point in the history
Co-authored-by: zeripath <art27@cantab.net>
  • Loading branch information
6543 and zeripath authored Mar 2, 2022
1 parent f4b96c1 commit 87f8d37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/git/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 87f8d37

Please sign in to comment.