summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/tree.go')
-rw-r--r--modules/repofiles/tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repofiles/tree.go b/modules/repofiles/tree.go
index 5b4e7aeb28..e189fe1229 100644
--- a/modules/repofiles/tree.go
+++ b/modules/repofiles/tree.go
@@ -23,7 +23,7 @@ func GetTreeBySHA(repo *models.Repository, sha string, page, perPage int, recurs
}
}
tree := new(api.GitTreeResponse)
- tree.SHA = gitTree.CommitID.String()
+ tree.SHA = gitTree.ResolvedID.String()
tree.URL = repo.APIURL() + "/git/trees/" + tree.SHA
var entries git.Entries
if recursive {