aboutsummaryrefslogtreecommitdiff
path: root/routes/api/v1/repo/file.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-05-27 08:53:48 +0800
committerUnknwon <u@gogs.io>2018-05-27 08:53:48 +0800
commitaff42082441715559bb2e62e11550af1a946a8c9 (patch)
treed5349c3d486346210a989659e788b50589198e69 /routes/api/v1/repo/file.go
parent73dbaefec50c4fc99a63c5be2891a1a34db18767 (diff)
*: rename "gogits" to "gogs"
Diffstat (limited to 'routes/api/v1/repo/file.go')
-rw-r--r--routes/api/v1/repo/file.go12
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)