summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/clone.go b/clone.go
index 276e753..234efa0 100644
--- a/clone.go
+++ b/clone.go
@@ -14,8 +14,8 @@ import (
type RemoteCreateCallback func(repo *Repository, name, url string) (*Remote, error)
type CloneOptions struct {
- *CheckoutOpts
- *FetchOptions
+ CheckoutOptions CheckoutOptions
+ FetchOptions FetchOptions
Bare bool
CheckoutBranch string
RemoteCreateCallback RemoteCreateCallback
@@ -100,8 +100,8 @@ func populateCloneOptions(copts *C.git_clone_options, opts *CloneOptions, errorT
if opts == nil {
return nil
}
- populateCheckoutOptions(&copts.checkout_opts, opts.CheckoutOpts, errorTarget)
- populateFetchOptions(&copts.fetch_opts, opts.FetchOptions, errorTarget)
+ populateCheckoutOptions(&copts.checkout_opts, &opts.CheckoutOptions, errorTarget)
+ populateFetchOptions(&copts.fetch_opts, &opts.FetchOptions, errorTarget)
copts.bare = cbool(opts.Bare)
if opts.RemoteCreateCallback != nil {