Skip to content

Commit

Permalink
git backend ignore replace objects (#18979)
Browse files Browse the repository at this point in the history
* git backend ignore replace objects

* comment
  • Loading branch information
6543 authored Mar 2, 2022
1 parent 04971c3 commit efd10f1
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 @@ -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
Expand Down

0 comments on commit efd10f1

Please sign in to comment.