cgars 8 年 前
コミット
cf432b8a4d
100 ファイル変更361 行追加292 行削除
  1. 21 2
      .github/CONTRIBUTING.md
  2. 1 1
      .github/PULL_REQUEST_TEMPLATE.md
  3. 64 0
      .gopmfile
  4. 2 2
      Makefile
  5. 6 8
      README.md
  6. 2 2
      cmd/admin.go
  7. 2 2
      cmd/backup.go
  8. 4 6
      cmd/hook.go
  9. 1 1
      cmd/import.go
  10. 2 2
      cmd/restore.go
  11. 4 4
      cmd/serv.go
  12. 14 14
      cmd/web.go
  13. 3 3
      docker/build.sh
  14. 2 2
      gogs.go
  15. 1 1
      models/access.go
  16. 3 3
      models/action.go
  17. 2 1
      models/admin.go
  18. 1 1
      models/attachment.go
  19. 2 2
      models/comment.go
  20. 3 3
      models/git_diff.go
  21. 3 3
      models/issue.go
  22. 1 1
      models/issue_label.go
  23. 3 3
      models/issue_mail.go
  24. 3 5
      models/login_source.go
  25. 1 1
      models/migrations/migrations.go
  26. 1 1
      models/migrations/v15.go
  27. 1 1
      models/migrations/v16.go
  28. 1 1
      models/milestone.go
  29. 4 4
      models/mirror.go
  30. 2 2
      models/models.go
  31. 1 1
      models/org_team.go
  32. 4 4
      models/pull.go
  33. 2 2
      models/release.go
  34. 6 7
      models/repo.go
  35. 1 2
      models/repo_branch.go
  36. 2 2
      models/repo_editor.go
  37. 2 2
      models/repo_test.go
  38. 3 2
      models/ssh_key.go
  39. 1 1
      models/ssh_key_test.go
  40. 1 1
      models/token.go
  41. 3 3
      models/two_factor.go
  42. 4 4
      models/user.go
  43. 1 1
      models/user_mail.go
  44. 4 4
      models/webhook.go
  45. 1 4
      models/webhook_discord.go
  46. 1 4
      models/webhook_slack.go
  47. 2 2
      models/wiki.go
  48. 4 4
      pkg/auth/auth.go
  49. 1 1
      pkg/context/api.go
  50. 1 1
      pkg/context/api_org.go
  51. 2 3
      pkg/context/auth.go
  52. 5 6
      pkg/context/context.go
  53. 3 3
      pkg/context/org.go
  54. 3 3
      pkg/context/repo.go
  55. 2 2
      pkg/cron/cron.go
  56. 1 1
      pkg/form/repo.go
  57. 2 2
      pkg/mailer/mail.go
  58. 1 1
      pkg/mailer/mailer.go
  59. 2 2
      pkg/markup/markdown.go
  60. 2 2
      pkg/markup/markdown_test.go
  61. 2 2
      pkg/markup/markup.go
  62. 2 2
      pkg/markup/markup_test.go
  63. 1 1
      pkg/markup/sanitizer.go
  64. 1 1
      pkg/markup/sanitizer_test.go
  65. 3 3
      pkg/setting/setting.go
  66. 2 2
      pkg/ssh/ssh.go
  67. 1 1
      pkg/template/highlight/highlight.go
  68. 4 4
      pkg/template/template.go
  69. 1 1
      pkg/tool/tool.go
  70. 7 7
      routes/admin/admin.go
  71. 5 5
      routes/admin/auths.go
  72. 3 3
      routes/admin/notice.go
  73. 4 4
      routes/admin/orgs.go
  74. 3 3
      routes/admin/repos.go
  75. 6 6
      routes/admin/users.go
  76. 4 3
      routes/api/v1/admin/org.go
  77. 3 3
      routes/api/v1/admin/org_repo.go
  78. 4 4
      routes/api/v1/admin/org_team.go
  79. 3 3
      routes/api/v1/admin/repo.go
  80. 7 8
      routes/api/v1/admin/user.go
  81. 11 11
      routes/api/v1/api.go
  82. 1 1
      routes/api/v1/convert/convert.go
  83. 1 1
      routes/api/v1/convert/utils.go
  84. 2 2
      routes/api/v1/misc/markdown.go
  85. 4 4
      routes/api/v1/org/org.go
  86. 2 2
      routes/api/v1/org/team.go
  87. 3 3
      routes/api/v1/repo/branch.go
  88. 3 3
      routes/api/v1/repo/collaborators.go
  89. 3 3
      routes/api/v1/repo/file.go
  90. 4 4
      routes/api/v1/repo/hook.go
  91. 4 4
      routes/api/v1/repo/issue.go
  92. 2 2
      routes/api/v1/repo/issue_comment.go
  93. 3 3
      routes/api/v1/repo/issue_label.go
  94. 4 4
      routes/api/v1/repo/key.go
  95. 2 2
      routes/api/v1/repo/label.go
  96. 2 2
      routes/api/v1/repo/milestone.go
  97. 8 8
      routes/api/v1/repo/repo.go
  98. 2 2
      routes/api/v1/user/app.go
  99. 4 4
      routes/api/v1/user/email.go
  100. 2 2
      routes/api/v1/user/follower.go

+ 21 - 2
.github/CONTRIBUTING.md

@@ -15,7 +15,26 @@ Depends on the situation, you will:
 
 ### Bug Report
 
-If you find something you consider a bug, please create an issue on [GitHub](https://github.com/gogits/gogs/issues). To avoid wasting time and reduce back-and-forth communication with team members, please be respect to [Issue Template](ISSUE_TEMPLATE.md).
+If you find something you consider a bug, please create a issue on [GitHub](https://github.com/G-Node/gogs/issues). To avoid wasting time and reduce back-and-forth communication with team members, please include at least the following information in a form comfortable for you:
+
+- Bug Description
+- Gogs Version
+- Git Version
+- System Type
+- Error Log
+- Other information
+
+Please take a moment to check that an issue on [GitHub](https://github.com/G-Node/gogs/issues) doesn't already exist documenting your bug report or improvement proposal. If it does, it never hurts to add a quick "+1" or "I have this problem too". This will help prioritize the most common problems and requests.
+
+#### Bug Report Example
+
+Gogs crashed when creating a repository with a license, using v0.5.13.0207, SQLite3, Git 1.9.0, Ubuntu 12.04.
+
+Error log:
+
+```
+2014/09/01 07:21:49 [E] nil pointer
+```
 
 ### Feature Request
 
@@ -23,7 +42,7 @@ There is no standard form of making a feature request. Just try to describe the
 
 ### Pull Request
 
-Please read detailed information on [Wiki](https://github.com/gogits/gogs/wiki/Contributing-Code).
+Please read detailed information on [Wiki](https://github.com/G-Node/gogs/wiki/Contributing-Code).
 
 ### Ask For Help
 

+ 1 - 1
.github/PULL_REQUEST_TEMPLATE.md

@@ -2,7 +2,7 @@ The pull request will be closed without any reasons if it does not satisfy any o
 
 1. Please make sure you are targeting the `develop` branch.
 2. Please read contributing guidelines:
-https://github.com/gogits/gogs/wiki/Contributing-Code
+https://github.com/G-Node/gogs/wiki/Contributing-Code
 3. Please describe what your pull request does and which issue you're targeting
 4. ... if it is not related to any particular issues, explain why we should not reject your pull request.
 

+ 64 - 0
.gopmfile

@@ -0,0 +1,64 @@
+[target]
+path = github.com/G-Node/gogs
+
+[deps]
+github.com/bradfitz/gomemcache = commit:2fafb84
+github.com/urfave/cli = commit:347a988
+github.com/go-macaron/binding = commit:4892016
+github.com/go-macaron/cache = commit:5617353
+github.com/go-macaron/captcha = commit:8aa5919
+github.com/go-macaron/csrf = commit:6a9a7df
+github.com/go-macaron/gzip = commit:cad1c65
+github.com/go-macaron/i18n = commit:ef57533
+github.com/go-macaron/inject = commit:d8a0b86
+github.com/go-macaron/session = commit:66031fc
+github.com/go-macaron/toolbox = commit:82b5115
+github.com/go-sql-driver/mysql = commit:2e00b5c
+github.com/go-xorm/builder = commit:9c35786
+github.com/go-xorm/core = commit:7daacb2
+github.com/go-xorm/xorm = commit:19f6dfc
+github.com/gogits/chardet = commit:2404f77
+github.com/gogits/cron = commit:2fc07a4
+github.com/gogits/git-module = commit:1b9552b
+github.com/gogits/go-gogs-client = commit:264a3d5
+github.com/gogits/go-libravatar = commit:cd1abbd
+github.com/issue9/identicon = commit:d36b545
+github.com/jaytaylor/html2text = commit:d16d412
+github.com/kardianos/minwinsvc = commit:cad6b2b
+github.com/klauspost/compress = commit:461e8fd
+github.com/klauspost/cpuid = commit:09cded8
+github.com/klauspost/crc32 = commit:cb6bfca
+github.com/lib/pq = commit:67c3f2a
+github.com/mattn/go-colorable = commit:d228849
+github.com/mattn/go-isatty = commit:30a891c
+github.com/mattn/go-sqlite3 = commit:ce9149a
+github.com/mcuadros/go-version = commit:257f7b9
+github.com/microcosm-cc/bluemonday = commit:e797637
+github.com/msteinert/pam = commit:02ccfbf
+github.com/nfnt/resize = commit:891127d
+github.com/russross/blackfriday = commit:5f33e7b
+github.com/satori/go.uuid = commit:b061729
+github.com/sergi/go-diff = commit:24e2351
+github.com/shurcooL/sanitized_anchor_name = commit:1dba4b3
+github.com/Unknwon/cae = commit:c6aac99
+github.com/Unknwon/com = commit:28b053d
+github.com/Unknwon/i18n = commit:e0eb0ce
+github.com/Unknwon/paginater = commit:701c23f
+github.com/fatih/color = commit:42c364b
+golang.org/x/crypto = commit:dc137be
+golang.org/x/net = commit:f249948
+golang.org/x/sys = commit:d75a526
+golang.org/x/text = commit:ece019d
+gopkg.in/alexcesaro/quotedprintable.v3 = commit:2caba25
+gopkg.in/asn1-ber.v1 = commit:4e86f43
+gopkg.in/bufio.v1 = commit:567b2bf
+gopkg.in/clog.v1 = commit:bf4bf4a
+gopkg.in/editorconfig/editorconfig-core-go.v1 = commit:a872f05
+gopkg.in/gomail.v2 = commit:81ebce5
+gopkg.in/ini.v1 = commit:e3c2d47
+gopkg.in/ldap.v2 = commit:8168ee0
+gopkg.in/macaron.v1 = commit:8be5635
+gopkg.in/redis.v2 = commit:e617904
+
+[res]
+include = public|scripts|templates

+ 2 - 2
Makefile

@@ -1,5 +1,5 @@
-LDFLAGS += -X "github.com/gogs/gogs/pkg/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')"
-LDFLAGS += -X "github.com/gogs/gogs/pkg/setting.BuildGitHash=$(shell git rev-parse HEAD)"
+LDFLAGS += -X "github.com/G-Node/gogs/pkg/setting.BuildTime=$(shell date -u '+%Y-%m-%d %I:%M:%S %Z')"
+LDFLAGS += -X "github.com/G-Node/gogs/pkg/setting.BuildGitHash=$(shell git rev-parse HEAD)"
 
 DATA_FILES := $(shell find conf | sed 's/ /\\ /g')
 LESS_FILES := $(wildcard public/less/gogs.less public/less/_*.less)

+ 6 - 8
README.md

@@ -1,9 +1,9 @@
-Gogs [![Build Status](https://travis-ci.org/gogs/gogs.svg?branch=master)](https://travis-ci.org/gogs/gogs) [![Build status](https://ci.appveyor.com/api/projects/status/b9uu5ejl933e2wlt/branch/master?svg=true)](https://ci.appveyor.com/project/Unknwon/gogs/branch/master) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/gogs/localized.svg)](https://crowdin.com/project/gogs) [![Discord](https://img.shields.io/discord/382595433060499458.svg)](https://discord.gg/9aqdHU7)
+Gogs [![Build Status](https://travis-ci.org/G-Node/gogs.svg?branch=master)](https://travis-ci.org/G-Node/gogs) [![Build status](https://ci.appveyor.com/api/projects/status/b9uu5ejl933e2wlt/branch/master?svg=true)](https://ci.appveyor.com/project/Unknwon/gogs/branch/master) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/gogs/localized.svg)](https://crowdin.com/project/gogs) [![Sourcegraph](https://sourcegraph.com/github.com/G-Node/gogs/-/badge.svg)](https://sourcegraph.com/github.com/G-Node/gogs?badge) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/G-Node/gogs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
 =====================
 
-![](https://github.com/gogs/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
+![](https://github.com/G-Node/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
 
-##### Current tip version: [`.VERSION`](templates/.VERSION) (see [Releases](https://github.com/gogs/gogs/releases) for binary versions)
+##### Current tip version: [`.VERSION`](templates/.VERSION) (see [Releases](https://github.com/G-Node/gogs/releases) for binary versions)
 
 | Web | UI  | Preview  |
 |:-------------:|:-------:|:-------:|
@@ -13,7 +13,7 @@ Gogs [![Build Status](https://travis-ci.org/gogs/gogs.svg?branch=master)](https:
 
 ### Important Notes
 
-1. **YOU MUST READ [Contributing Code](https://github.com/gogs/gogs/wiki/Contributing-Code) BEFORE STARTING TO WORK ON A PULL REQUEST**.
+1. **YOU MUST READ [Contributing Code](https://github.com/G-Node/gogs/wiki/Contributing-Code) BEFORE STARTING TO WORK ON A PULL REQUEST**.
 2. Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) was reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site.
 3. The demo site [try.gogs.io](https://try.gogs.io) is running under `develop` branch.
 4. If you think there are vulnerabilities in the project, please talk privately to **u@gogs.io**, and the name you want to be credited as. Thanks!
@@ -74,7 +74,7 @@ There are 6 ways to install Gogs:
 - [Install from binary](https://gogs.io/docs/installation/install_from_binary.html)
 - [Install from source](https://gogs.io/docs/installation/install_from_source.html)
 - [Install from packages](https://gogs.io/docs/installation/install_from_packages.html)
-- [Ship with Docker](https://github.com/gogs/gogs/tree/master/docker)
+- [Ship with Docker](https://github.com/G-Node/gogs/tree/master/docker)
 - [Install with Vagrant](https://github.com/geerlingguy/ansible-vagrant-examples/tree/master/gogs)
 - [Install with Kubernetes Using Helm Charts](https://github.com/helm/charts/tree/master/incubator/gogs)
 
@@ -137,6 +137,4 @@ There are 6 ways to install Gogs:
 
 ## License
 
-This project is under the MIT License. See the [LICENSE](https://github.com/gogs/gogs/blob/master/LICENSE) file for the full license text.
-
-[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgogs%2Fgogs.svg?type=small)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgogs%2Fgogs?ref=badge_small)
+This project is under the MIT License. See the [LICENSE](https://github.com/G-Node/gogs/blob/master/LICENSE) file for the full license text.

+ 2 - 2
cmd/admin.go

@@ -11,8 +11,8 @@ import (
 
 	"github.com/urfave/cli"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var (

+ 2 - 2
cmd/backup.go

@@ -17,8 +17,8 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/ini.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var Backup = cli.Command{

+ 4 - 6
cmd/hook.go

@@ -21,12 +21,10 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/httplib"
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/template"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/httplib"
+	"github.com/G-Node/gogs/pkg/setting"
+	http "github.com/G-Node/gogs/routes/repo"
 )
 
 var (

+ 1 - 1
cmd/import.go

@@ -15,7 +15,7 @@ import (
 	"github.com/Unknwon/com"
 	"github.com/urfave/cli"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var (

+ 2 - 2
cmd/restore.go

@@ -15,8 +15,8 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/ini.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var Restore = cli.Command{

+ 4 - 4
cmd/serv.go

@@ -16,10 +16,10 @@ import (
 	"github.com/urfave/cli"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogits/gogs/models"
-	"github.com/gogits/gogs/models/errors"
-	"github.com/gogits/gogs/pkg/setting"
-	http "github.com/gogits/gogs/routes/repo"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
+	http "github.com/G-Node/gogs/routes/repo"
 	"syscall"
 )
 

+ 14 - 14
cmd/web.go

@@ -30,20 +30,20 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/bindata"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/template"
-	"github.com/gogs/gogs/routes"
-	"github.com/gogs/gogs/routes/admin"
-	apiv1 "github.com/gogs/gogs/routes/api/v1"
-	"github.com/gogs/gogs/routes/dev"
-	"github.com/gogs/gogs/routes/org"
-	"github.com/gogs/gogs/routes/repo"
-	"github.com/gogs/gogs/routes/user"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/bindata"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/pkg/mailer"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/template"
+	"github.com/G-Node/gogs/routes"
+	"github.com/G-Node/gogs/routes/admin"
+	apiv1 "github.com/G-Node/gogs/routes/api/v1"
+	"github.com/G-Node/gogs/routes/dev"
+	"github.com/G-Node/gogs/routes/org"
+	"github.com/G-Node/gogs/routes/repo"
+	"github.com/G-Node/gogs/routes/user"
 )
 
 var Web = cli.Command{

+ 3 - 3
docker/build.sh

@@ -13,9 +13,9 @@ cd ${GOPATH}/src/github.com/jteeuwen/go-bindata/go-bindata
 go install
 
 # Build Gogs
-mkdir -p ${GOPATH}/src/github.com/gogs/
-ln -s /app/gogs/build ${GOPATH}/src/github.com/gogs/gogs
-cd ${GOPATH}/src/github.com/gogs/gogs
+mkdir -p ${GOPATH}/src/github.com/G-Node/
+ln -s /app/gogs/build ${GOPATH}/src/github.com/G-Node/gogs
+cd ${GOPATH}/src/github.com/G-Node/gogs
 # Needed since git 2.9.3 or 2.9.4
 git config --global http.https://gopkg.in.followRedirects true
 make build TAGS="sqlite cert pam"

+ 2 - 2
gogs.go

@@ -12,8 +12,8 @@ import (
 
 	"github.com/urfave/cli"
 
-	"github.com/gogs/gogs/cmd"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/cmd"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 const APP_VER = "0.11.88.0220"

+ 1 - 1
models/access.go

@@ -9,7 +9,7 @@ import (
 
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models/errors"
+	"github.com/G-Node/gogs/models/errors"
 )
 
 type AccessMode int

+ 3 - 3
models/action.go

@@ -20,9 +20,9 @@ import (
 	"github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 type ActionType int

+ 2 - 1
models/admin.go

@@ -14,7 +14,8 @@ import (
 	"github.com/go-xorm/xorm"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 type NoticeType int

+ 1 - 1
models/attachment.go

@@ -15,7 +15,7 @@ import (
 	"github.com/go-xorm/xorm"
 	gouuid "github.com/satori/go.uuid"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // Attachment represent a attachment of issue/comment/release.

+ 2 - 2
models/comment.go

@@ -15,8 +15,8 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/markup"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/markup"
 )
 
 // CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.

+ 3 - 3
models/git_diff.go

@@ -17,9 +17,9 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/template/highlight"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/template/highlight"
 )
 
 type DiffSection struct {

+ 3 - 3
models/issue.go

@@ -15,9 +15,9 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 var (

+ 1 - 1
models/issue_label.go

@@ -15,7 +15,7 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})")

+ 3 - 3
models/issue_mail.go

@@ -10,9 +10,9 @@ import (
 	"github.com/Unknwon/com"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/mailer"
+	"github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func (issue *Issue) MailSubject() string {

+ 3 - 5
models/login_source.go

@@ -24,11 +24,9 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/ini.v1"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/auth/github"
-	"github.com/gogs/gogs/pkg/auth/ldap"
-	"github.com/gogs/gogs/pkg/auth/pam"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/auth/ldap"
+	"github.com/G-Node/gogs/pkg/auth/pam"
 )
 
 type LoginType int

+ 1 - 1
models/migrations/migrations.go

@@ -13,7 +13,7 @@ import (
 	"github.com/go-xorm/xorm"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 const _MIN_DB_VER = 10

+ 1 - 1
models/migrations/v15.go

@@ -15,7 +15,7 @@ import (
 	"github.com/go-xorm/xorm"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func generateAndMigrateGitHooks(x *xorm.Engine) (err error) {

+ 1 - 1
models/migrations/v16.go

@@ -14,7 +14,7 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func updateRepositorySizes(x *xorm.Engine) (err error) {

+ 1 - 1
models/milestone.go

@@ -13,7 +13,7 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // Milestone represents a milestone of repository.

+ 4 - 4
models/mirror.go

@@ -18,10 +18,10 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/sync"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/sync"
 )
 
 var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)

+ 2 - 2
models/models.go

@@ -24,8 +24,8 @@ import (
 	_ "github.com/lib/pq"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models/migrations"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models/migrations"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // Engine represents a XORM engine or session.

+ 1 - 1
models/org_team.go

@@ -32,7 +32,7 @@ type Team struct {
 func (t *Team) AfterSet(colName string, _ xorm.Cell) {
 	switch colName {
 	case "num_repos":
-		// LEGACY [1.0]: this is backward compatibility bug fix for https://github.com/gogs/gogs/issues/3671
+		// LEGACY [1.0]: this is backward compatibility bug fix for https://github.com/G-Node/gogs/issues/3671
 		if t.NumRepos < 0 {
 			t.NumRepos = 0
 		}

+ 4 - 4
models/pull.go

@@ -18,10 +18,10 @@ import (
 	"github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/sync"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/sync"
 )
 
 var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLength)

+ 2 - 2
models/release.go

@@ -16,8 +16,8 @@ import (
 	"github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/process"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/process"
 )
 
 // Release represents a release of repository.

+ 6 - 7
models/repo.go

@@ -30,13 +30,12 @@ import (
 	git "github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/avatar"
-	"github.com/gogs/gogs/pkg/bindata"
-	"github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/sync"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/bindata"
+	"github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/sync"
 )
 
 // REPO_AVATAR_URL_PREFIX is used to identify a URL is to access repository avatar.

+ 1 - 2
models/repo_branch.go

@@ -11,8 +11,7 @@ import (
 	"github.com/Unknwon/com"
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 type Branch struct {

+ 2 - 2
models/repo_editor.go

@@ -21,8 +21,8 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogits/gogs/pkg/process"
-	"github.com/gogits/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
 	"github.com/G-Node/go-annex"
 )
 

+ 2 - 2
models/repo_test.go

@@ -5,8 +5,8 @@ import (
 
 	. "github.com/smartystreets/goconvey/convey"
 
-	. "github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/markup"
+	. "github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/markup"
 )
 
 func TestRepo(t *testing.T) {

+ 3 - 2
models/ssh_key.go

@@ -23,8 +23,9 @@ import (
 	"golang.org/x/crypto/ssh"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 const (

+ 1 - 1
models/ssh_key_test.go

@@ -11,7 +11,7 @@ import (
 
 	. "github.com/smartystreets/goconvey/convey"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func init() {

+ 1 - 1
models/token.go

@@ -10,7 +10,7 @@ import (
 	"github.com/go-xorm/xorm"
 	gouuid "github.com/satori/go.uuid"
 
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 // AccessToken represents a personal access token.

+ 3 - 3
models/two_factor.go

@@ -15,9 +15,9 @@ import (
 	"github.com/pquerna/otp/totp"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 // TwoFactor represents a two-factor authentication token.

+ 4 - 4
models/user.go

@@ -29,10 +29,10 @@ import (
 	"github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogits/gogs/models/errors"
-	"github.com/gogits/gogs/pkg/avatar"
-	"github.com/gogits/gogs/pkg/setting"
-	"github.com/gogits/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/avatar"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 	"golang.org/x/crypto/bcrypt"
 )
 

+ 1 - 1
models/user_mail.go

@@ -8,7 +8,7 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/gogs/gogs/models/errors"
+	"github.com/G-Node/gogs/models/errors"
 )
 
 // EmailAdresses is the list of all email addresses of a user. Can contain the

+ 4 - 4
models/webhook.go

@@ -21,10 +21,10 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/httplib"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/sync"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/httplib"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/sync"
 )
 
 var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)

+ 1 - 4
models/webhook_discord.go

@@ -11,10 +11,7 @@ import (
 
 	"github.com/json-iterator/go"
 
-	"github.com/gogs/git-module"
-	api "github.com/gogs/go-gogs-client"
-
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type DiscordEmbedFooterObject struct {

+ 1 - 4
models/webhook_slack.go

@@ -10,10 +10,7 @@ import (
 
 	"github.com/json-iterator/go"
 
-	"github.com/gogs/git-module"
-	api "github.com/gogs/go-gogs-client"
-
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type SlackMeta struct {

+ 2 - 2
models/wiki.go

@@ -17,8 +17,8 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/sync"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/sync"
 )
 
 var wikiWorkingPool = sync.NewExclusivePool()

+ 4 - 4
pkg/auth/auth.go

@@ -13,10 +13,10 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 func IsAPIPath(url string) bool {

+ 1 - 1
pkg/context/api.go

@@ -13,7 +13,7 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type APIContext struct {

+ 1 - 1
pkg/context/api_org.go

@@ -5,7 +5,7 @@
 package context
 
 import (
-	"github.com/gogs/gogs/models"
+	"github.com/G-Node/gogs/models"
 )
 
 type APIOrganization struct {

+ 2 - 3
pkg/context/auth.go

@@ -12,9 +12,8 @@ import (
 	"github.com/go-macaron/csrf"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/pkg/auth"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/auth"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type ToggleOptions struct {

+ 5 - 6
pkg/context/context.go

@@ -20,12 +20,11 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/auth"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/template"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/auth"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // Context represents context of a request.

+ 3 - 3
pkg/context/org.go

@@ -9,9 +9,9 @@ import (
 
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type Organization struct {

+ 3 - 3
pkg/context/repo.go

@@ -14,9 +14,9 @@ import (
 
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type PullRequest struct {

+ 2 - 2
pkg/cron/cron.go

@@ -11,8 +11,8 @@ import (
 
 	"github.com/gogs/cron"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var c = cron.New()

+ 1 - 1
pkg/form/repo.go

@@ -12,7 +12,7 @@ import (
 	"github.com/go-macaron/binding"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
+	"github.com/G-Node/gogs/models"
 )
 
 // _______________________________________    _________.______________________ _______________.___.

+ 2 - 2
pkg/mailer/mail.go

@@ -12,8 +12,8 @@ import (
 	"gopkg.in/gomail.v2"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 const (

+ 1 - 1
pkg/mailer/mailer.go

@@ -18,7 +18,7 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/gomail.v2"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 type Message struct {

+ 2 - 2
pkg/markup/markdown.go

@@ -14,8 +14,8 @@ import (
 
 	"github.com/russross/blackfriday"
 
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // IsMarkdownFile reports whether name looks like a Markdown file based on its extension.

+ 2 - 2
pkg/markup/markdown_test.go

@@ -12,8 +12,8 @@ import (
 	"github.com/russross/blackfriday"
 	. "github.com/smartystreets/goconvey/convey"
 
-	. "github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/setting"
+	. "github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func Test_IsMarkdownFile(t *testing.T) {

+ 2 - 2
pkg/markup/markup.go

@@ -14,8 +14,8 @@ import (
 	"github.com/Unknwon/com"
 	"golang.org/x/net/html"
 
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 // IsReadmeFile reports whether name looks like a README file based on its extension.

+ 2 - 2
pkg/markup/markup_test.go

@@ -10,8 +10,8 @@ import (
 
 	. "github.com/smartystreets/goconvey/convey"
 
-	. "github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/setting"
+	. "github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func Test_IsReadmeFile(t *testing.T) {

+ 1 - 1
pkg/markup/sanitizer.go

@@ -10,7 +10,7 @@ import (
 
 	"github.com/microcosm-cc/bluemonday"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // Sanitizer is a protection wrapper of *bluemonday.Policy which does not allow

+ 1 - 1
pkg/markup/sanitizer_test.go

@@ -9,7 +9,7 @@ import (
 
 	. "github.com/smartystreets/goconvey/convey"
 
-	. "github.com/gogs/gogs/pkg/markup"
+	. "github.com/G-Node/gogs/pkg/markup"
 )
 
 func Test_Sanitizer(t *testing.T) {

+ 3 - 3
pkg/setting/setting.go

@@ -27,9 +27,9 @@ import (
 
 	"github.com/gogs/go-libravatar"
 
-	"github.com/gogs/gogs/pkg/bindata"
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/user"
+	"github.com/G-Node/gogs/pkg/bindata"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/user"
 )
 
 type Scheme string

+ 2 - 2
pkg/ssh/ssh.go

@@ -18,8 +18,8 @@ import (
 	"golang.org/x/crypto/ssh"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogits/gogs/models"
-	"github.com/gogits/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/setting"
 	"syscall"
 )
 

+ 1 - 1
pkg/template/highlight/highlight.go

@@ -8,7 +8,7 @@ import (
 	"path"
 	"strings"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 var (

+ 4 - 4
pkg/template/template.go

@@ -21,10 +21,10 @@ import (
 	log "gopkg.in/clog.v1"
 	"gopkg.in/editorconfig/editorconfig-core-go.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/markup"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/tool"
+	"github.com/G-Node/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // TODO: only initialize map once and save to a local variable to reduce copies.

+ 1 - 1
pkg/tool/tool.go

@@ -24,7 +24,7 @@ import (
 
 	"github.com/gogs/chardet"
 
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // MD5Bytes encodes string to MD5 bytes.

+ 7 - 7
routes/admin/admin.go

@@ -14,13 +14,13 @@ import (
 	"github.com/json-iterator/go"
 	"gopkg.in/macaron.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/cron"
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/process"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/pkg/tool"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/cron"
+	"github.com/G-Node/gogs/pkg/mailer"
+	"github.com/G-Node/gogs/pkg/process"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/tool"
 )
 
 const (

+ 5 - 5
routes/admin/auths.go

@@ -13,11 +13,11 @@ import (
 	"github.com/go-xorm/core"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/auth/ldap"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/auth/ldap"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 const (

+ 3 - 3
routes/admin/notice.go

@@ -9,9 +9,9 @@ import (
 	"github.com/Unknwon/paginater"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 const (

+ 4 - 4
routes/admin/orgs.go

@@ -5,10 +5,10 @@
 package admin
 
 import (
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes"
 )
 
 const (

+ 3 - 3
routes/admin/repos.go

@@ -8,9 +8,9 @@ import (
 	"github.com/Unknwon/paginater"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 const (

+ 6 - 6
routes/admin/users.go

@@ -10,12 +10,12 @@ import (
 	"github.com/Unknwon/com"
 	log "gopkg.in/clog.v1"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/pkg/mailer"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes"
 )
 
 const (

+ 4 - 3
routes/api/v1/admin/org.go

@@ -7,9 +7,10 @@ package admin
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/org"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Administration-Organizations#create-a-new-organization

+ 3 - 3
routes/api/v1/admin/org_repo.go

@@ -5,9 +5,9 @@
 package admin
 
 import (
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func GetRepositoryByParams(c *context.APIContext) *models.Repository {

+ 4 - 4
routes/api/v1/admin/org_team.go

@@ -7,10 +7,10 @@ package admin
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/convert"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 func CreateTeam(c *context.APIContext, form api.CreateTeamOption) {

+ 3 - 3
routes/api/v1/admin/repo.go

@@ -7,9 +7,9 @@ package admin
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/repo"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/repo"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository

+ 7 - 8
routes/api/v1/admin/user.go

@@ -7,14 +7,13 @@ package admin
 import (
 	log "gopkg.in/clog.v1"
 
-	api "github.com/gogs/go-gogs-client"
-
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/mailer"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	api "github.com/gogits/go-gogs-client"
+
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/mailer"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 func parseLoginSource(c *context.APIContext, u *models.User, sourceID int64, loginName string) {

+ 11 - 11
routes/api/v1/api.go

@@ -11,17 +11,17 @@ import (
 	"github.com/go-macaron/binding"
 	"gopkg.in/macaron.v1"
 
-	api "github.com/gogs/go-gogs-client"
-
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/routes/api/v1/admin"
-	"github.com/gogs/gogs/routes/api/v1/misc"
-	"github.com/gogs/gogs/routes/api/v1/org"
-	"github.com/gogs/gogs/routes/api/v1/repo"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	api "github.com/gogits/go-gogs-client"
+
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/routes/api/v1/admin"
+	"github.com/G-Node/gogs/routes/api/v1/misc"
+	"github.com/G-Node/gogs/routes/api/v1/org"
+	"github.com/G-Node/gogs/routes/api/v1/repo"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 func repoAssignment() macaron.Handler {

+ 1 - 1
routes/api/v1/convert/convert.go

@@ -12,7 +12,7 @@ import (
 	"github.com/gogs/git-module"
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
+	"github.com/G-Node/gogs/models"
 )
 
 func ToEmail(email *models.EmailAddress) *api.Email {

+ 1 - 1
routes/api/v1/convert/utils.go

@@ -5,7 +5,7 @@
 package convert
 
 import (
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 // ToCorrectPageSize makes sure page size is in allowed range.

+ 2 - 2
routes/api/v1/misc/markdown.go

@@ -7,8 +7,8 @@ package misc
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/markup"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/markup"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Miscellaneous#render-an-arbitrary-markdown-document

+ 4 - 4
routes/api/v1/org/org.go

@@ -7,10 +7,10 @@ package org
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/convert"
-	"github.com/gogs/gogs/routes/api/v1/user"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/routes/api/v1/user"
 )
 
 func CreateOrgForUser(c *context.APIContext, apiForm api.CreateOrgOption, user *models.User) {

+ 2 - 2
routes/api/v1/org/team.go

@@ -7,8 +7,8 @@ package org
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 func ListTeams(c *context.APIContext) {

+ 3 - 3
routes/api/v1/repo/branch.go

@@ -7,9 +7,9 @@ package repo
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Repositories#get-branch

+ 3 - 3
routes/api/v1/repo/collaborators.go

@@ -7,9 +7,9 @@ package repo
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func ListCollaborators(c *context.APIContext) {

+ 3 - 3
routes/api/v1/repo/file.go

@@ -7,9 +7,9 @@ package repo
 import (
 	"github.com/gogs/git-module"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/repo"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/repo"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Repositories-Contents#download-raw-content

+ 4 - 4
routes/api/v1/repo/hook.go

@@ -10,10 +10,10 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Repositories#list-hooks

+ 4 - 4
routes/api/v1/repo/issue.go

@@ -10,10 +10,10 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
 )
 
 func listIssues(c *context.APIContext, opts *models.IssuesOptions) {

+ 2 - 2
routes/api/v1/repo/issue_comment.go

@@ -8,8 +8,8 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func ListIssueComments(c *context.APIContext) {

+ 3 - 3
routes/api/v1/repo/issue_label.go

@@ -7,9 +7,9 @@ package repo
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func ListIssueLabels(c *context.APIContext) {

+ 4 - 4
routes/api/v1/repo/key.go

@@ -9,10 +9,10 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 func composeDeployKeysAPILink(repoPath string) string {

+ 2 - 2
routes/api/v1/repo/label.go

@@ -9,8 +9,8 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func ListLabels(c *context.APIContext) {

+ 2 - 2
routes/api/v1/repo/milestone.go

@@ -9,8 +9,8 @@ import (
 
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func ListMilestones(c *context.APIContext) {

+ 8 - 8
routes/api/v1/repo/repo.go

@@ -9,14 +9,14 @@ import (
 
 	log "gopkg.in/clog.v1"
 
-	api "github.com/gogs/go-gogs-client"
-
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/models/errors"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/form"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	api "github.com/gogits/go-gogs-client"
+
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/models/errors"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/form"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Repositories#search-repositories

+ 2 - 2
routes/api/v1/user/app.go

@@ -7,8 +7,8 @@ package user
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Users#list-access-tokens-for-a-user

+ 4 - 4
routes/api/v1/user/email.go

@@ -7,10 +7,10 @@ package user
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
-	"github.com/gogs/gogs/pkg/setting"
-	"github.com/gogs/gogs/routes/api/v1/convert"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
+	"github.com/G-Node/gogs/pkg/setting"
+	"github.com/G-Node/gogs/routes/api/v1/convert"
 )
 
 // https://github.com/gogs/go-gogs-client/wiki/Users-Emails#list-email-addresses-for-a-user

+ 2 - 2
routes/api/v1/user/follower.go

@@ -7,8 +7,8 @@ package user
 import (
 	api "github.com/gogs/go-gogs-client"
 
-	"github.com/gogs/gogs/models"
-	"github.com/gogs/gogs/pkg/context"
+	"github.com/G-Node/gogs/models"
+	"github.com/G-Node/gogs/pkg/context"
 )
 
 func responseApiUsers(c *context.APIContext, users []*models.User) {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません