mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05:00
git backend ignore replace objects (#18979)
* git backend ignore replace objects * comment
This commit is contained in:
parent
04971c33a3
commit
efd10f1ab4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue