summaryrefslogtreecommitdiff
path: root/clone.go
diff options
context:
space:
mode:
Diffstat (limited to 'clone.go')
-rw-r--r--clone.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/clone.go b/clone.go
index 4acf170..958e65d 100644
--- a/clone.go
+++ b/clone.go
@@ -56,11 +56,7 @@ func populateCloneOptions(ptr *C.git_clone_options, opts *CloneOptions) {
}
populateCheckoutOpts(&ptr.checkout_opts, opts.CheckoutOpts)
populateRemoteCallbacks(&ptr.remote_callbacks, opts.RemoteCallbacks)
- if opts.Bare {
- ptr.bare = 1
- } else {
- ptr.bare = 0
- }
+ ptr.bare = cbool(opts.Bare)
if opts.RemoteCreateCallback != nil {
ptr.remote_cb = opts.RemoteCreateCallback