mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Backport #35560 by @lunny Fix #35518 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -58,8 +58,12 @@ func testGitPush(t *testing.T, u *url.URL) { | ||||
| 			for i := range 5 { | ||||
| 				branchName := fmt.Sprintf("branch-%d", i) | ||||
| 				pushed = append(pushed, branchName) | ||||
|  | ||||
| 				doGitAddSomeCommits(gitPath, branchName)(t) | ||||
| 				doGitCheckoutWriteFileCommit(localGitAddCommitOptions{ | ||||
| 					LocalRepoPath:   gitPath, | ||||
| 					CheckoutBranch:  branchName, | ||||
| 					TreeFilePath:    fmt.Sprintf("file-%s.txt", branchName), | ||||
| 					TreeFileContent: "file " + branchName, | ||||
| 				})(t) | ||||
| 			} | ||||
|  | ||||
| 			for i := 5; i < 10; i++ { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user