Skip to content

Commit

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

* comment
  • Loading branch information
6543 authored and Stelios Malathouras committed Mar 28, 2022
1 parent f6d86d5 commit 2c7ca1b
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 2c7ca1b

Please sign in to comment.