Skip to content

Commit

Permalink
*: rename "gogits" to "gogs"
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed May 27, 2018
1 parent 73dbaef commit aff4208
Show file tree
Hide file tree
Showing 127 changed files with 545 additions and 545 deletions.
4 changes: 2 additions & 2 deletions cmd/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/urfave/cli"

"github.com/gogits/gogs/models"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/models"
"github.com/gogs/gogs/pkg/setting"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"

"github.com/gogits/gogs/models"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/models"
"github.com/gogs/gogs/pkg/setting"
)

var Backup = cli.Command{
Expand Down
18 changes: 9 additions & 9 deletions cmd/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ import (
"github.com/urfave/cli"
log "gopkg.in/clog.v1"

"github.com/gogits/git-module"

"github.com/gogits/gogs/models"
"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/httplib"
"github.com/gogits/gogs/pkg/mailer"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/template"
http "github.com/gogits/gogs/routes/repo"
"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"
http "github.com/gogs/gogs/routes/repo"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/Unknwon/com"
"github.com/urfave/cli"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/setting"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"

"github.com/gogits/gogs/models"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/models"
"github.com/gogs/gogs/pkg/setting"
)

var Restore = cli.Command{
Expand Down
8 changes: 4 additions & 4 deletions cmd/serv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/gogs/gogs/models"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/setting"
http "github.com/gogs/gogs/routes/repo"
)

const (
Expand Down
28 changes: 14 additions & 14 deletions cmd/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/macaron.v1"

"github.com/gogits/gogs/models"
"github.com/gogits/gogs/pkg/bindata"
"github.com/gogits/gogs/pkg/context"
"github.com/gogits/gogs/pkg/form"
"github.com/gogits/gogs/pkg/mailer"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/template"
"github.com/gogits/gogs/routes"
"github.com/gogits/gogs/routes/admin"
apiv1 "github.com/gogits/gogs/routes/api/v1"
"github.com/gogits/gogs/routes/dev"
"github.com/gogits/gogs/routes/org"
"github.com/gogits/gogs/routes/repo"
"github.com/gogits/gogs/routes/user"
"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"
)

var Web = cli.Command{
Expand Down
6 changes: 3 additions & 3 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export PATH=/usr/local/go/bin:${PATH}:${GOPATH}/bin
apk --no-cache --no-progress add --virtual build-deps build-base linux-pam-dev

# Build Gogs
mkdir -p ${GOPATH}/src/github.com/gogits/
ln -s /app/gogs/build ${GOPATH}/src/github.com/gogits/gogs
cd ${GOPATH}/src/github.com/gogits/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
# 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"
Expand Down
2 changes: 1 addition & 1 deletion docker/no-pic.patch
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ index 14f4fa9..5599307 100644
+
if l.Debugvlog != 0 {
l.Logf("%5.2f host link:", obj.Cputime())
for _, v := range argv {
for _, v := range argv {
4 changes: 2 additions & 2 deletions gogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

"github.com/urfave/cli"

"github.com/gogits/gogs/cmd"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/cmd"
"github.com/gogs/gogs/pkg/setting"
)

const APP_VER = "0.11.49.0521"
Expand Down
2 changes: 1 addition & 1 deletion models/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

log "gopkg.in/clog.v1"

"github.com/gogits/gogs/models/errors"
"github.com/gogs/gogs/models/errors"
)

type AccessMode int
Expand Down
10 changes: 5 additions & 5 deletions models/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

"github.com/gogits/git-module"
api "github.com/gogits/go-gogs-client"
"github.com/gogs/git-module"
api "github.com/gogs/go-gogs-client"

"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/tool"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/tool"
)

type ActionType int
Expand Down
4 changes: 2 additions & 2 deletions models/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/tool"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/tool"
)

type NoticeType int
Expand Down
2 changes: 1 addition & 1 deletion models/attachment.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/go-xorm/xorm"
gouuid "github.com/satori/go.uuid"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/setting"
)

// Attachment represent a attachment of issue/comment/release.
Expand Down
6 changes: 3 additions & 3 deletions models/comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

api "github.com/gogits/go-gogs-client"
api "github.com/gogs/go-gogs-client"

"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/markup"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/markup"
)

// CommentType defines whether a comment is just a simple comment, an action (like close) or a reference.
Expand Down
8 changes: 4 additions & 4 deletions models/git_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
"golang.org/x/net/html/charset"
"golang.org/x/text/transform"

"github.com/gogits/git-module"
"github.com/gogs/git-module"

"github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/template/highlight"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/template/highlight"
"github.com/gogs/gogs/pkg/tool"
)

type DiffSection struct {
Expand Down
2 changes: 1 addition & 1 deletion models/git_diff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"html/template"
"testing"

"github.com/gogits/git-module"
"github.com/gogs/git-module"
dmp "github.com/sergi/go-diff/diffmatchpatch"
)

Expand Down
8 changes: 4 additions & 4 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

api "github.com/gogits/go-gogs-client"
api "github.com/gogs/go-gogs-client"

"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/tool"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/tool"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions models/issue_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (

"github.com/go-xorm/xorm"

api "github.com/gogits/go-gogs-client"
api "github.com/gogs/go-gogs-client"

"github.com/gogits/gogs/pkg/tool"
"github.com/gogs/gogs/pkg/tool"
)

var labelColorPattern = regexp.MustCompile("#([a-fA-F0-9]{6})")
Expand Down
6 changes: 3 additions & 3 deletions models/issue_mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/Unknwon/com"
log "gopkg.in/clog.v1"

"github.com/gogits/gogs/pkg/mailer"
"github.com/gogits/gogs/pkg/markup"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/mailer"
"github.com/gogs/gogs/pkg/markup"
"github.com/gogs/gogs/pkg/setting"
)

func (issue *Issue) MailSubject() string {
Expand Down
8 changes: 4 additions & 4 deletions models/login_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"

"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/auth/ldap"
"github.com/gogits/gogs/pkg/auth/pam"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/auth/ldap"
"github.com/gogs/gogs/pkg/auth/pam"
"github.com/gogs/gogs/pkg/setting"
)

type LoginType int
Expand Down
6 changes: 3 additions & 3 deletions models/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

"github.com/gogits/gogs/pkg/tool"
"github.com/gogs/gogs/pkg/tool"
)

const _MIN_DB_VER = 10
Expand Down Expand Up @@ -98,9 +98,9 @@ You can migrate your older database using a previous release, then you can upgra
Please save following instructions to somewhere and start working:
- If you were using below 0.6.0 (e.g. 0.5.x), download last supported archive from following link:
https://github.com/gogits/gogs/releases/tag/v0.7.33
https://github.com/gogs/gogs/releases/tag/v0.7.33
- If you were using below 0.7.0 (e.g. 0.6.x), download last supported archive from following link:
https://github.com/gogits/gogs/releases/tag/v0.9.141
https://github.com/gogs/gogs/releases/tag/v0.9.141
Once finished downloading,
Expand Down
2 changes: 1 addition & 1 deletion models/migrations/v15.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/setting"
)

func generateAndMigrateGitHooks(x *xorm.Engine) (err error) {
Expand Down
4 changes: 2 additions & 2 deletions models/migrations/v16.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

"github.com/gogits/git-module"
"github.com/gogs/git-module"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/setting"
)

func updateRepositorySizes(x *xorm.Engine) (err error) {
Expand Down
4 changes: 2 additions & 2 deletions models/milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/go-xorm/xorm"
log "gopkg.in/clog.v1"

api "github.com/gogits/go-gogs-client"
api "github.com/gogs/go-gogs-client"

"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/setting"
)

// Milestone represents a milestone of repository.
Expand Down
10 changes: 5 additions & 5 deletions models/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
log "gopkg.in/clog.v1"
"gopkg.in/ini.v1"

"github.com/gogits/git-module"
"github.com/gogs/git-module"

"github.com/gogits/gogs/models/errors"
"github.com/gogits/gogs/pkg/process"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogits/gogs/pkg/sync"
"github.com/gogs/gogs/models/errors"
"github.com/gogs/gogs/pkg/process"
"github.com/gogs/gogs/pkg/setting"
"github.com/gogs/gogs/pkg/sync"
)

var MirrorQueue = sync.NewUniqueQueue(setting.Repository.MirrorQueueLength)
Expand Down
4 changes: 2 additions & 2 deletions models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
_ "github.com/lib/pq"
log "gopkg.in/clog.v1"

"github.com/gogits/gogs/models/migrations"
"github.com/gogits/gogs/pkg/setting"
"github.com/gogs/gogs/models/migrations"
"github.com/gogs/gogs/pkg/setting"
)

// Engine represents a XORM engine or session.
Expand Down
2 changes: 1 addition & 1 deletion models/org_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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/gogits/gogs/issues/3671
// LEGACY [1.0]: this is backward compatibility bug fix for https://github.com/gogs/gogs/issues/3671
if t.NumRepos < 0 {
t.NumRepos = 0
}
Expand Down
Loading

0 comments on commit aff4208

Please sign in to comment.