summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorGogs <gogitservice@gmail.com>2014-04-10 12:59:20 -0400
committerGogs <gogitservice@gmail.com>2014-04-10 12:59:20 -0400
commitfde5b16332d5c4dc8246b899cd42d58b058f2bed (patch)
tree3dff34e53f34632532fd7a05e00e6f06b3e7fb82 /models
parent7811e58726e1ab45a29d982d91f990b7984a2ba9 (diff)
downloadgitea-fde5b16332d5c4dc8246b899cd42d58b058f2bed.tar.gz
gitea-fde5b16332d5c4dc8246b899cd42d58b058f2bed.zip
Fix wrong path name
Diffstat (limited to 'models')
-rw-r--r--models/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/git.go b/models/git.go
index 134d71f4e4..77b7ef2d7e 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 {