aboutsummaryrefslogtreecommitdiff
path: root/serve.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-22 05:30:53 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-22 05:30:53 -0400
commit5435b259ccdfc7795183d54fec9ba673f2938297 (patch)
tree0d8280f1073c8b10e80b5eed18f49a1813bc7c88 /serve.go
parent2a9da4b8e54736c3a8f7ecc41f3c75fdcfb70f9b (diff)
parentdbdaf934e1b8fab06361266268bb55d30b352f37 (diff)
Merge branch 'master' of github.com:gogits/gogs into dev
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/serve.go b/serve.go
index 4e410b62..32122795 100644
--- a/serve.go
+++ b/serve.go
@@ -116,8 +116,8 @@ func runServ(k *cli.Context) {
repoPath := strings.Trim(args, "'")
rr := strings.SplitN(repoPath, "/", 2)
if len(rr) != 2 {
- println("Unavilable repository", args)
- qlog.Fatalf("Unavilable repository %v", args)
+ println("Unavailable repository", args)
+ qlog.Fatalf("Unavailable repository %v", args)
}
repoUserName := rr[0]
repoName := strings.TrimSuffix(rr[1], ".git")
@@ -136,7 +136,7 @@ func runServ(k *cli.Context) {
case isWrite:
has, err := models.HasAccess(user.LowerName, path.Join(repoUserName, repoName), models.AU_WRITABLE)
if err != nil {
- println("Inernel error:", err)
+ println("Internal error:", err)
qlog.Fatal(err)
} else if !has {
println("You have no right to write this repository")
@@ -155,13 +155,13 @@ func runServ(k *cli.Context) {
has, err := models.HasAccess(user.Name, path.Join(repoUserName, repoName), models.AU_READABLE)
if err != nil {
- println("Inernel error")
+ println("Internal error")
qlog.Fatal(err)
}
if !has {
has, err = models.HasAccess(user.Name, repoPath, models.AU_WRITABLE)
if err != nil {
- println("Inernel error")
+ println("Internal error")
qlog.Fatal(err)
}
}