From f8a48ffaad481ee9eaa8a42e0e7d64c12c90ef86 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 24 Aug 2016 21:35:03 -0700 Subject: Web editor: improve code quality --- routers/api/v1/repo/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/api/v1/repo/file.go') diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go index 745b444a..972dbefa 100644 --- a/routers/api/v1/repo/file.go +++ b/routers/api/v1/repo/file.go @@ -19,7 +19,7 @@ func GetRawFile(ctx *context.APIContext) { return } - blob, err := ctx.Repo.Commit.GetBlobByPath(ctx.Repo.TreeName) + blob, err := ctx.Repo.Commit.GetBlobByPath(ctx.Repo.TreePath) if err != nil { if git.IsErrNotExist(err) { ctx.Status(404) -- cgit v1.2.3