diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-02-26 16:15:10 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-02-26 16:15:10 +0100 |
| commit | 1c1f7bd1fab3be4a1274149292979bea4ee8aadf (patch) | |
| tree | 67dc9a8ff8ee6e018203769c31d55f83861983dc /checkout.go | |
| parent | 3e5586bd8d532c929aecf778fc094e4f86588d37 (diff) | |
| parent | 00ea11691b574b8372cb216427d98038e107e358 (diff) | |
Merge branch 'more-errors'
Diffstat (limited to 'checkout.go')
| -rw-r--r-- | checkout.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checkout.go b/checkout.go index f4c1d4e..d3cd47b 100644 --- a/checkout.go +++ b/checkout.go @@ -65,7 +65,7 @@ func (v *Repository) Checkout(opts *CheckoutOpts) error { ret := C.git_checkout_head(v.ptr, &copts) if ret < 0 { - return LastError() + return MakeGitError(ret) } return nil @@ -81,7 +81,7 @@ func (v *Repository) CheckoutIndex(index *Index, opts *CheckoutOpts) error { ret := C.git_checkout_index(v.ptr, index.ptr, &copts) if ret < 0 { - return LastError() + return MakeGitError(ret) } return nil |
