diff options
author | Chai-Shi <changchaishi@gmail.com> | 2024-12-31 12:22:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-31 04:22:09 +0000 |
commit | 0387195abb82080b4c488966960f25a3e8c6fe66 (patch) | |
tree | 794cf1e7705002236a33af563729284b48a303c5 /routers/api/v1/repo/repo.go | |
parent | c09656e0e0384b15405f909a0e7d7e94a373448e (diff) | |
download | gitea-0387195abb82080b4c488966960f25a3e8c6fe66.tar.gz gitea-0387195abb82080b4c488966960f25a3e8c6fe66.zip |
[Feature] Private README.md for organization (#32872)
Implemented #29503
---------
Co-authored-by: Ben Chang <ben_chang@htc.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r-- | routers/api/v1/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index a192e241b7..ce09e7fc0f 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -726,7 +726,7 @@ func updateBasicProperties(ctx *context.APIContext, opts api.EditRepoOption) err if ctx.Repo.GitRepo == nil && !repo.IsEmpty { var err error - ctx.Repo.GitRepo, err = gitrepo.RepositoryFromRequestContextOrOpen(ctx, ctx, repo) + ctx.Repo.GitRepo, err = gitrepo.RepositoryFromRequestContextOrOpen(ctx, repo) if err != nil { ctx.Error(http.StatusInternalServerError, "Unable to OpenRepository", err) return err |