summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2014-02-26 16:15:10 +0100
committerCarlos Martín Nieto <[email protected]>2014-02-26 16:15:10 +0100
commit1c1f7bd1fab3be4a1274149292979bea4ee8aadf (patch)
tree67dc9a8ff8ee6e018203769c31d55f83861983dc /commit.go
parent3e5586bd8d532c929aecf778fc094e4f86588d37 (diff)
parent00ea11691b574b8372cb216427d98038e107e358 (diff)
Merge branch 'more-errors'
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