diff options
author | 6543 <6543@obermui.de> | 2022-03-02 21:13:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 20:13:19 +0000 |
commit | efd10f1ab4bd66ef8e583ff8f9d3d25f7f741a6a (patch) | |
tree | 9f24186f7d8901b81c7dd963859ad9275dad131d | |
parent | 04971c33a3daef4e249afbcbfc0a24901669222a (diff) | |
download | gitea-efd10f1ab4bd66ef8e583ff8f9d3d25f7f741a6a.tar.gz gitea-efd10f1ab4bd66ef8e583ff8f9d3d25f7f741a6a.zip |
git backend ignore replace objects (#18979)
* git backend ignore replace objects
* comment
-rw-r--r-- | modules/git/command.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/git/command.go b/modules/git/command.go index ba982f3180..649d9cf249 100644 --- a/modules/git/command.go +++ b/modules/git/command.go @@ -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 |