diff options
Diffstat (limited to 'routers/private/serv.go')
-rw-r--r-- | routers/private/serv.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/private/serv.go b/routers/private/serv.go index 803d51e9d9..ddb2e6aa8b 100644 --- a/routers/private/serv.go +++ b/routers/private/serv.go @@ -142,7 +142,7 @@ func ServCommand(ctx *context.PrivateContext) { if repo_model.IsErrRepoNotExist(err) { repoExist = false for _, verb := range ctx.FormStrings("verb") { - if "git-upload-pack" == verb { + if verb == "git-upload-pack" { // User is fetching/cloning a non-existent repository log.Warn("Failed authentication attempt (cannot find repository: %s/%s) from %s", results.OwnerName, results.RepoName, ctx.RemoteAddr()) ctx.JSON(http.StatusNotFound, private.ErrServCommand{ |