summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-02-26 08:45:44 -0800
committerJesse Ezell <[email protected]>2014-02-26 08:45:44 -0800
commitbaf4a8433663f87e2732f9c2632a070221f166f2 (patch)
tree2e8ec293db11776d4f6dd448c6f426c8491bc864 /commit.go
parentfe509411a5e8bd45a1c5607d1cc212d8ebf45541 (diff)
parent1c1f7bd1fab3be4a1274149292979bea4ee8aadf (diff)
Merge branch 'master' of https://github.com/libgit2/git2go into add-branch-lookup
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.go b/commit.go
index 0c64c76..0edebb6 100644
--- a/commit.go
+++ b/commit.go
@@ -31,7 +31,7 @@ func (c Commit) Tree() (*Tree, error) {
err := C.git_commit_tree(&ptr, c.ptr)
if err < 0 {
- return nil, LastError()
+ return nil, MakeGitError(err)
}
return allocObject(ptr).(*Tree), nil