diff options
author | Pierre Baillet <oct@zoy.org> | 2014-04-22 11:11:11 +0200 |
---|---|---|
committer | Pierre Baillet <oct@zoy.org> | 2014-04-22 11:11:11 +0200 |
commit | b32407456a767aae4a7a45680302203013883fa1 (patch) | |
tree | 5a2065d179887d863bda8a88d512ac93a088737b /serve.go | |
parent | 9a5e49cccb806c71a1ff7f8aa86111379f42f5b0 (diff) | |
download | gitea-b32407456a767aae4a7a45680302203013883fa1.tar.gz gitea-b32407456a767aae4a7a45680302203013883fa1.zip |
Typos
- Very small typo fixes
Diffstat (limited to 'serve.go')
-rw-r--r-- | serve.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) } } |