mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 18:49:29 +02:00
refactor: remove unnecessary git command wrapper functions (#38531)
Removed `gitrepo.RunCmd*` functions, because gitcmd.Command works with Repository directly. Move some "local filesystem" related function into "localfs.go"
This commit is contained in:
1 parent
730b6f2daf
commit
775e3bdb34
53 files changed
+269
-284
No files matched your search
@@ -28,8 +28,8 @@ func TestAPIGitTags(t *testing.T) {
|
||||
token := getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeReadRepository)
|
||||
|
||||
// Set up git config for the tagger
|
||||
_ = gitrepo.GitConfigSet(t.Context(), repo, "user.name", user.Name)
|
||||
_ = gitrepo.GitConfigSet(t.Context(), repo, "user.email", user.Email)
|
||||
_ = gitrepo.ManagedConfigSet(t.Context(), repo, "user.name", user.Name)
|
||||
_ = gitrepo.ManagedConfigSet(t.Context(), repo, "user.email", user.Email)
|
||||
|
||||
gitRepo, _ := gitrepo.OpenRepository(repo)
|
||||
defer gitRepo.Close()
|
||||
|
||||
Reference in new issue
Block a user