aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJoubert RedRat <eu+github@redrat.com.br>2016-12-21 10:13:17 -0200
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-21 20:13:17 +0800
commitce21ed6c3490cdfad797319cbb1145e2330a8fef (patch)
tree570c4eded0ca748c651209a0018d0ec7240d59f2 /cmd
parent618407c018cdf668ceedde7454c42fb22ba422d8 (diff)
downloadgitea-ce21ed6c3490cdfad797319cbb1145e2330a8fef.tar.gz
gitea-ce21ed6c3490cdfad797319cbb1145e2330a8fef.zip
Remove remaining Gogs reference on locales and cmd (#430)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/admin.go3
-rw-r--r--cmd/cert.go2
-rw-r--r--cmd/dump.go21
-rw-r--r--cmd/serve.go9
-rw-r--r--cmd/web.go4
5 files changed, 21 insertions, 18 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 9aeb32138a..440a172a82 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -1,4 +1,5 @@
// Copyright 2016 The Gogs Authors. All rights reserved.
+// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
@@ -18,7 +19,7 @@ var (
CmdAdmin = cli.Command{
Name: "admin",
Usage: "Preform admin operations on command line",
- Description: `Allow using internal logic of Gogs without hacking into the source code
+ Description: `Allow using internal logic of Gitea without hacking into the source code
to make automatic initialization process more smoothly`,
Subcommands: []cli.Command{
subcmdCreateUser,
diff --git a/cmd/cert.go b/cmd/cert.go
index 4d05f86b45..df38513d6b 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -137,7 +137,7 @@ func runCert(ctx *cli.Context) error {
SerialNumber: serialNumber,
Subject: pkix.Name{
Organization: []string{"Acme Co"},
- CommonName: "Gogs",
+ CommonName: "Gitea",
},
NotBefore: notBefore,
NotAfter: notAfter,
diff --git a/cmd/dump.go b/cmd/dump.go
index d17b5e2fb0..325ad40451 100644
--- a/cmd/dump.go
+++ b/cmd/dump.go
@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
+// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
@@ -21,9 +22,9 @@ import (
// CmdDump represents the available dump sub-command.
var CmdDump = cli.Command{
Name: "dump",
- Usage: "Dump Gogs files and database",
+ Usage: "Dump Gitea files and database",
Description: `Dump compresses all related files and database into zip file.
-It can be used for backup and capture Gogs server image to send to maintainer`,
+It can be used for backup and capture Gitea server image to send to maintainer`,
Action: runDump,
Flags: []cli.Flag{
cli.StringFlag{
@@ -55,14 +56,14 @@ func runDump(ctx *cli.Context) error {
if _, err := os.Stat(tmpDir); os.IsNotExist(err) {
log.Fatalf("Path does not exist: %s", tmpDir)
}
- TmpWorkDir, err := ioutil.TempDir(tmpDir, "gogs-dump-")
+ TmpWorkDir, err := ioutil.TempDir(tmpDir, "gitea-dump-")
if err != nil {
log.Fatalf("Fail to create tmp work directory: %v", err)
}
log.Printf("Creating tmp work dir: %s", TmpWorkDir)
- reposDump := path.Join(TmpWorkDir, "gogs-repo.zip")
- dbDump := path.Join(TmpWorkDir, "gogs-db.sql")
+ reposDump := path.Join(TmpWorkDir, "gitea-repo.zip")
+ dbDump := path.Join(TmpWorkDir, "gitea-db.sql")
log.Printf("Dumping local repositories...%s", setting.RepoRootPath)
zip.Verbose = ctx.Bool("verbose")
@@ -75,18 +76,18 @@ func runDump(ctx *cli.Context) error {
log.Fatalf("Fail to dump database: %v", err)
}
- fileName := fmt.Sprintf("gogs-dump-%d.zip", time.Now().Unix())
+ fileName := fmt.Sprintf("gitea-dump-%d.zip", time.Now().Unix())
log.Printf("Packing dump files...")
z, err := zip.Create(fileName)
if err != nil {
log.Fatalf("Fail to create %s: %v", fileName, err)
}
- if err := z.AddFile("gogs-repo.zip", reposDump); err != nil {
- log.Fatalf("Fail to include gogs-repo.zip: %v", err)
+ if err := z.AddFile("gitea-repo.zip", reposDump); err != nil {
+ log.Fatalf("Fail to include gitea-repo.zip: %v", err)
}
- if err := z.AddFile("gogs-db.sql", dbDump); err != nil {
- log.Fatalf("Fail to include gogs-db.sql: %v", err)
+ if err := z.AddFile("gitea-db.sql", dbDump); err != nil {
+ log.Fatalf("Fail to include gitea-db.sql: %v", err)
}
customDir, err := os.Stat(setting.CustomPath)
if err == nil && customDir.IsDir() {
diff --git a/cmd/serve.go b/cmd/serve.go
index 53a5c3bef0..26876f2de0 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -1,4 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
+// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
@@ -76,7 +77,7 @@ var (
)
func fail(userMessage, logMessage string, args ...interface{}) {
- fmt.Fprintln(os.Stderr, "Gogs:", userMessage)
+ fmt.Fprintln(os.Stderr, "Gitea:", userMessage)
if len(logMessage) > 0 {
if !setting.ProdMode {
@@ -144,7 +145,7 @@ func runServ(c *cli.Context) error {
setup("serv.log")
if setting.SSH.Disabled {
- println("Gogs: SSH has been disabled")
+ println("Gitea: SSH has been disabled")
return nil
}
@@ -154,8 +155,8 @@ func runServ(c *cli.Context) error {
cmd := os.Getenv("SSH_ORIGINAL_COMMAND")
if len(cmd) == 0 {
- println("Hi there, You've successfully authenticated, but Gogs does not provide shell access.")
- println("If this is unexpected, please log in with password and setup Gogs under another user.")
+ println("Hi there, You've successfully authenticated, but Gitea does not provide shell access.")
+ println("If this is unexpected, please log in with password and setup Gitea under another user.")
return nil
}
diff --git a/cmd/web.go b/cmd/web.go
index dfb3ac2385..db6e2305cd 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -44,8 +44,8 @@ import (
// CmdWeb represents the available web sub-command.
var CmdWeb = cli.Command{
Name: "web",
- Usage: "Start Gogs web server",
- Description: `Gogs web server is the only thing you need to run,
+ Usage: "Start Gitea web server",
+ Description: `Gitea web server is the only thing you need to run,
and it takes care of all the other things for you`,
Action: runWeb,
Flags: []cli.Flag{