diff options
Diffstat (limited to 'worktree.go')
-rw-r--r-- | worktree.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worktree.go b/worktree.go index 36b17b6..1a1661a 100644 --- a/worktree.go +++ b/worktree.go @@ -34,7 +34,7 @@ func (w *Worktree) Checkout(commit plumbing.Hash) error { return ErrWorktreeNotClean } - c, err := w.r.Commit(commit) + c, err := w.r.CommitObject(commit) if err != nil { return err } |