Last analyzed 5da1e62 6 days ago
Default analysis branch is
Currently analyzing run
Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
a month ago5 months old
c.Repo.Repository.RepoPath is deprecated: Use repoutil.RepositoryPath instead.
 26		pageSize = 30
 27	}
 28
 29	gitRepo, err := git.Open(c.Repo.Repository.RepoPath()) 30	if err != nil {
 31		c.Error(err, "open repository")
 32		return
c.Repo.Repository.RepoPath is deprecated: Use repoutil.RepositoryPath instead.
 78}
 79
 80func GetReferenceSHA(c *context.APIContext) {
 81	gitRepo, err := git.Open(c.Repo.Repository.RepoPath()) 82	if err != nil {
 83		c.Error(err, "open repository")
 84		return
c.Repo.Repository.HTMLURL is deprecated: Use repoutil.HTMLURL instead.
154			URL: conf.Server.ExternalURL + c.Link[1:],
155			SHA: commit.ID.String(),
156		},
157		HTMLURL: c.Repo.Repository.HTMLURL() + "/commits/" + commit.ID.String(),158		RepoCommit: &api.RepoCommit{
159			URL: conf.Server.ExternalURL + c.Link[1:],
160			Author: &api.CommitUser{
c.Repo.Repository.RepoPath is deprecated: Use repoutil.RepositoryPath instead.
 59		return
 60	}
 61
 62	gitRepo, err := git.Open(c.Repo.Repository.RepoPath()) 63	if err != nil {
 64		c.Error(err, "open repository")
 65		return
c.Repo.Repository.APIFormatLegacy is deprecated: Use APIFormat instead.
541				Modified: nameStatus.Modified,
542			},
543		},
544		Repo:   c.Repo.Repository.APIFormatLegacy(nil),545		Pusher: apiUser,
546		Sender: apiUser,
547	}