mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 04:41:33 +00:00 
			
		
		
		
	Move git command to git/gitcmd (#35483)
The name cmd is already used in many places and may cause conflicts, so I chose `gitcmd` instead to minimize potential naming conflicts.
This commit is contained in:
		| @@ -13,7 +13,7 @@ import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	auth_model "code.gitea.io/gitea/models/auth" | ||||
| 	"code.gitea.io/gitea/modules/git" | ||||
| 	"code.gitea.io/gitea/modules/git/gitcmd" | ||||
| 	"code.gitea.io/gitea/modules/test" | ||||
| 	"code.gitea.io/gitea/tests" | ||||
|  | ||||
| @@ -265,7 +265,7 @@ func TestCreateAgitPullWithReadPermission(t *testing.T) { | ||||
| 		t.Run("add commit", doGitAddSomeCommits(dstPath, "master")) | ||||
|  | ||||
| 		t.Run("do agit pull create", func(t *testing.T) { | ||||
| 			err := git.NewCommand("push", "origin", "HEAD:refs/for/master", "-o").AddDynamicArguments("topic="+"test-topic").Run(t.Context(), &git.RunOpts{Dir: dstPath}) | ||||
| 			err := gitcmd.NewCommand("push", "origin", "HEAD:refs/for/master", "-o").AddDynamicArguments("topic="+"test-topic").Run(t.Context(), &gitcmd.RunOpts{Dir: dstPath}) | ||||
| 			assert.NoError(t, err) | ||||
| 		}) | ||||
| 	}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user