forked from forgejo/forgejo
go vet and fix #1890
This commit is contained in:
parent
58436b5ea5
commit
b55499d039
11 changed files with 30 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue