diff options
author | Unknwon <u@gogs.io> | 2018-05-27 08:53:48 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2018-05-27 08:53:48 +0800 |
commit | aff42082441715559bb2e62e11550af1a946a8c9 (patch) | |
tree | d5349c3d486346210a989659e788b50589198e69 /routes/api/v1/repo/file.go | |
parent | 73dbaefec50c4fc99a63c5be2891a1a34db18767 (diff) |
*: rename "gogits" to "gogs"
Diffstat (limited to 'routes/api/v1/repo/file.go')
-rw-r--r-- | routes/api/v1/repo/file.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/routes/api/v1/repo/file.go b/routes/api/v1/repo/file.go index c783e81f..5afb1113 100644 --- a/routes/api/v1/repo/file.go +++ b/routes/api/v1/repo/file.go @@ -5,14 +5,14 @@ package repo import ( - "github.com/gogits/git-module" + "github.com/gogs/git-module" - "github.com/gogits/gogs/models" - "github.com/gogits/gogs/pkg/context" - "github.com/gogits/gogs/routes/repo" + "github.com/gogs/gogs/models" + "github.com/gogs/gogs/pkg/context" + "github.com/gogs/gogs/routes/repo" ) -// https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-raw-content +// https://github.com/gogs/go-gogs-client/wiki/Repositories-Contents#download-raw-content func GetRawFile(c *context.APIContext) { if !c.Repo.HasAccess() { c.Status(404) @@ -38,7 +38,7 @@ func GetRawFile(c *context.APIContext) { } } -// https://github.com/gogits/go-gogs-client/wiki/Repositories-Contents#download-archive +// https://github.com/gogs/go-gogs-client/wiki/Repositories-Contents#download-archive func GetArchive(c *context.APIContext) { repoPath := models.RepoPath(c.Params(":username"), c.Params(":reponame")) gitRepo, err := git.OpenRepository(repoPath) |