aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--serve.go10
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 12087a9d..03878072 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ There are 3 ways to install Gogs:
## Contributors
-This project was launched by [Unknown](https://github.com/Unknwon) and [lunny](https://github.com/lunny); [fuxiaohei](https://github.com/fuxiaohei), [slene](https://github.com/slene) and [codeskyblue](https://github.com/codeskyblue) joined the team soon after. See [contributors page](https://github.com/gogits/gogs/graphs/contributors) for full list of contributors.
+This project was launched by [Unknwon](https://github.com/Unknwon) and [lunny](https://github.com/lunny); [fuxiaohei](https://github.com/fuxiaohei), [slene](https://github.com/slene) and [codeskyblue](https://github.com/codeskyblue) joined the team soon after. See [contributors page](https://github.com/gogits/gogs/graphs/contributors) for full list of contributors.
[![Clone in Koding](http://learn.koding.com/btn/clone_d.png)][koding]
[koding]: https://koding.com/Teamwork?import=https://github.com/gogits/gogs/archive/master.zip&c=git1
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)
}
}