aboutsummaryrefslogtreecommitdiff
path: root/cmd/serve.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-02-22 22:55:35 -0500
committerUnknwon <u@gogs.io>2015-02-22 22:55:35 -0500
commit10e4b5b6c66d1a1a17d975dea28b090eaa404cad (patch)
tree51fc71aee19cecbd734c63cc08116711c367cd7c /cmd/serve.go
parent7ccab9cd09eca8fa60fdd519c97c259d4b521abd (diff)
parentfc4dff1b1727682b9641f9238f583cfade2901be (diff)
Merge branch 'access' of github.com:gogits/gogs into access
Diffstat (limited to 'cmd/serve.go')
-rw-r--r--cmd/serve.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/serve.go b/cmd/serve.go
index e8e5c186..9e34b95c 100644
--- a/cmd/serve.go
+++ b/cmd/serve.go
@@ -164,6 +164,11 @@ func runServ(c *cli.Context) {
println("You have no right to write this repository")
log.GitLogger.Fatal(2, "User %s has no right to write repository %s", user.Name, repoPath)
}
+
+ if repo.IsMirror {
+ println("You can't write to a mirror repository")
+ log.GitLogger.Fatal(2, "User %s tried to write to a mirror repository %s", user.Name, repoPath)
+ }
case isRead:
if !repo.IsPrivate {
break