mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Remove context from git struct (#33793)
Argument is moved from struct init in command run, which lets us remove context from struct.
This commit is contained in:
		| @@ -45,7 +45,7 @@ func TestGitLFSSSH(t *testing.T) { | ||||
| 			setting.LFS.AllowPureSSH = true | ||||
| 			require.NoError(t, cfg.Save()) | ||||
|  | ||||
| 			_, _, cmdErr := git.NewCommand(t.Context(), "config", "lfs.sshtransfer", "always").RunStdString(&git.RunOpts{Dir: dstPath}) | ||||
| 			_, _, cmdErr := git.NewCommand("config", "lfs.sshtransfer", "always").RunStdString(t.Context(), &git.RunOpts{Dir: dstPath}) | ||||
| 			assert.NoError(t, cmdErr) | ||||
| 			lfsCommitAndPushTest(t, dstPath, 10) | ||||
| 		}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user