From fde5b16332d5c4dc8246b899cd42d58b058f2bed Mon Sep 17 00:00:00 2001 From: Gogs Date: Thu, 10 Apr 2014 12:59:20 -0400 Subject: [PATCH] Fix wrong path name --- models/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/git.go b/models/git.go index 134d71f4e41..77b7ef2d7e7 100644 --- a/models/git.go +++ b/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 {