mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-08 04:35:47 +00:00
go vet and fix #1890
This commit is contained in:
@@ -158,7 +158,7 @@ func HTTP(ctx *middleware.Context) {
|
||||
}
|
||||
|
||||
if !isPull && repo.IsMirror {
|
||||
ctx.HandleText(401, "can't push to mirror")
|
||||
ctx.HandleText(401, "mirror repository is read-only")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user