From 47a7529d9655e11471bbe39958222a13854a6133 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 22 Dec 2016 17:30:52 +0800 Subject: update code.gitea.io/git (#450) --- vendor/code.gitea.io/git/repo_tree.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vendor/code.gitea.io/git/repo_tree.go') diff --git a/vendor/code.gitea.io/git/repo_tree.go b/vendor/code.gitea.io/git/repo_tree.go index baebb25101..6e3843f7e5 100644 --- a/vendor/code.gitea.io/git/repo_tree.go +++ b/vendor/code.gitea.io/git/repo_tree.go @@ -4,7 +4,7 @@ package git -func (repo *Repository) getTree(id sha1) (*Tree, error) { +func (repo *Repository) getTree(id SHA1) (*Tree, error) { treePath := filepathFromSHA1(repo.Path, id.String()) if isFile(treePath) { _, err := NewCommand("ls-tree", id.String()).RunInDir(repo.Path) @@ -16,7 +16,7 @@ func (repo *Repository) getTree(id sha1) (*Tree, error) { return NewTree(repo, id), nil } -// Find the tree object in the repository. +// GetTree find the tree object in the repository. func (repo *Repository) GetTree(idStr string) (*Tree, error) { id, err := NewIDFromString(idStr) if err != nil { -- cgit v1.2.3