소스 검색

Fix wrong path name

tags/v0.9.99
Gogs 10 년 전
부모
커밋
fde5b16332
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      models/git.go

+ 1
- 1
models/git.go 파일 보기

@@ -163,7 +163,7 @@ func getReposFiles(userName, repoName, commitId string, rpath string) ([]*RepoFi
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
out, err := cmd.Output()
if err != nil {

Loading…
취소
저장