diff options
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.go b/repository.go index 8a966c6..24d025d 100644 --- a/repository.go +++ b/repository.go @@ -449,7 +449,7 @@ func (r *Repository) clone(ctx context.Context, o *CloneOptions) error { return err } - if r.wt != nil { + if r.wt != nil && !o.NoCheckout { w, err := r.Worktree() if err != nil { return err |