Browse Source

Fix subtle mistake...

pull/2135/head
tso 9 years ago
parent
commit
3b3311d675
  1. 2
      routers/repo/view.go

2
routers/repo/view.go

@ -363,7 +363,7 @@ func gitcmd(ctx *middleware.Context, args ...string) (string, error) {
return stdout, nil return stdout, nil
} }
func gitcatfile(ctx *middleware.Context, hash string) ([]byte, error) { 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 git.Dir = ctx.Repo.GitRepo.Path
stdout, err := git.StdoutPipe() stdout, err := git.StdoutPipe()
if err != nil { if err != nil {

Loading…
Cancel
Save