Explorar el Código

Fix wrong path name

tags/v0.9.99
Gogs hace 10 años
padre
commit
fde5b16332
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      models/git.go

+ 1
- 1
models/git.go Ver fichero

@@ -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 {

Cargando…
Cancelar
Guardar