Browse Source

Fix wrong path name

pull/70/head
Gogs 11 years ago
parent
commit
fde5b16332
  1. 2
      models/git.go

2
models/git.go

@ -163,7 +163,7 @@ func getReposFiles(userName, repoName, commitId string, rpath string) ([]*RepoFi
return 0 return 0
} }
cmd := exec.Command("git", "log", "-1", "--pretty=format:%H", commitId, "--", entry.Name) cmd := exec.Command("git", "log", "-1", "--pretty=format:%H", commitId, "--", path.Join(dirname, entry.Name))
cmd.Dir = repopath cmd.Dir = repopath
out, err := cmd.Output() out, err := cmd.Output()
if err != nil { if err != nil {

Loading…
Cancel
Save