This commit is contained in:
yystopf 2023-03-15 18:09:42 +08:00
parent 65171d0bf7
commit 3e0ac8ad78
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ func GetReadmeContents(ctx *context.APIContext) {
ref := ctx.Params(":ref")
readmePath := "README.md"
readmezhPath := ""
filesListInterface, err := files_service.GetContentsOrList(ctx, ctx.Repo.Repository, readmePath, ref)
filesListInterface, err := files_service.GetContentsOrList(ctx, ctx.Repo.Repository, "", ref)
if err != nil {
ctx.Error(http.StatusInternalServerError, "GetContentsOrList", err)
return