From 3b3311d675cecacf0b284da944a3cf0b2388dbe0 Mon Sep 17 00:00:00 2001 From: tso Date: Wed, 16 Dec 2015 22:30:17 -0500 Subject: [PATCH] Fix subtle mistake... --- routers/repo/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/view.go b/routers/repo/view.go index 087b75f55..98a4d5753 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -363,7 +363,7 @@ func gitcmd(ctx *middleware.Context, args ...string) (string, error) { return stdout, nil } func gitcatfile(ctx *middleware.Context, hash string) ([]byte, error) { - git := exec.Command("git", "cat-file blob"+hash) + git := exec.Command("git", "cat-file", "blob", hash) git.Dir = ctx.Repo.GitRepo.Path stdout, err := git.StdoutPipe() if err != nil {