diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-01-18 11:59:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-18 11:59:27 +0100 |
commit | f6aca0820fb0a44d4c4875a21581a09609d63a6b (patch) | |
tree | cc94d2d3accb4f5277f2a13e571da275b0bbf08e /repository.go | |
parent | e9247ce9c5ce12126f646ca3ddf0066e4829bd14 (diff) | |
parent | 591aed138177b27b08a90c90e6e074a6cf2dbd00 (diff) | |
download | go-git-f6aca0820fb0a44d4c4875a21581a09609d63a6b.tar.gz |
Merge pull request #721 from rykov/clone-no-checkout
Support for clone without checkout (git clone -n)
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 |