Move git command run on a special repository to standalone methods to hide the implemention detail #17734
Annotations
10 errors
Run make backend:
services/context/api.go#L330
ctx.Repo.GitRepo.IsBranchExist undefined (type gitrepo.GitRepository has no field or method IsBranchExist)
|
Run make backend:
services/context/api.go#L337
ctx.Repo.GitRepo.IsTagExist undefined (type gitrepo.GitRepository has no field or method IsTagExist)
|
Run make backend:
services/context/api.go#L338
ctx.Repo.GitRepo.GetTagCommit undefined (type gitrepo.GitRepository has no field or method GetTagCommit)
|
Run make backend:
services/context/repo.go#L681
multiple-value gitRepo.GetBranchCommit(ctx.Repo.Repository.DefaultBranch) (value of type (*"code.gitea.io/gitea/modules/git".Commit, error)) in single-value context
|
Run make backend:
services/context/repo.go#L828
repo.GitRepo.IsBranchExist undefined (type gitrepo.GitRepository has no field or method IsBranchExist)
|
Run make backend:
services/context/repo.go#L859
repo.GitRepo.IsTagExist undefined (type gitrepo.GitRepository has no field or method IsTagExist)
|
Run make backend:
services/context/repo.go#L878
repo.GitRepo.GetBlob undefined (type gitrepo.GitRepository has no field or method GetBlob)
|
Run make backend:
services/context/repo.go#L925
ctx.Repo.GitRepo.IsBranchExist undefined (type gitrepo.GitRepository has no field or method IsBranchExist)
|
Run make backend:
services/context/repo.go#L930
ctx.Repo.GitRepo.Path undefined (type gitrepo.GitRepository has no field or method Path)
|
Run make backend:
services/context/repo.go#L963
ctx.Repo.GitRepo.IsBranchExist undefined (type gitrepo.GitRepository has no field or method IsBranchExist)
|
Loading