diff options
| author | Carlos Martín Nieto <[email protected]> | 2015-08-31 20:12:45 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2015-08-31 20:12:45 +0200 |
| commit | d59752528c627fd511e2969b9daa672d4d8adc7d (patch) | |
| tree | 48a919fa85a76a69e3a19768edb7ac12d1d03d09 /reset.go | |
| parent | c6c2e9389fd2148d20f2e283000f5b4204dbcdc8 (diff) | |
| parent | b7159b0cd4b25ee3b1a8eb9e0d4991d297487a36 (diff) | |
Merge pull request #237 from libgit2/object-type
Move from an Object interface to a type
Diffstat (limited to 'reset.go')
| -rw-r--r-- | reset.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,7 +17,7 @@ const ( func (r *Repository) ResetToCommit(commit *Commit, resetType ResetType, opts *CheckoutOpts) error { runtime.LockOSThread() defer runtime.UnlockOSThread() - ret := C.git_reset(r.ptr, commit.gitObject.ptr, C.git_reset_t(resetType), opts.toC()) + ret := C.git_reset(r.ptr, commit.ptr, C.git_reset_t(resetType), opts.toC()) if ret < 0 { return MakeGitError(ret) |
