mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	git backend ignore replace objects (#18979)
* git backend ignore replace objects * comment
This commit is contained in:
		@@ -158,6 +158,8 @@ func (c *Command) RunWithContext(rc *RunContext) error {
 | 
				
			|||||||
		fmt.Sprintf("LC_ALL=%s", DefaultLocale),
 | 
							fmt.Sprintf("LC_ALL=%s", DefaultLocale),
 | 
				
			||||||
		// avoid prompting for credentials interactively, supported since git v2.3
 | 
							// avoid prompting for credentials interactively, supported since git v2.3
 | 
				
			||||||
		"GIT_TERMINAL_PROMPT=0",
 | 
							"GIT_TERMINAL_PROMPT=0",
 | 
				
			||||||
 | 
							// ignore replace references (https://git-scm.com/docs/git-replace)
 | 
				
			||||||
 | 
							"GIT_NO_REPLACE_OBJECTS=1",
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cmd.Dir = rc.Dir
 | 
						cmd.Dir = rc.Dir
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user