From 530f3618a8f4c7d9c8d3981548112439b22e09e7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 16 Dec 2024 17:50:57 -0600 Subject: update to libgit2 version 1.8.4. dump old github and vendor stuff go install go.wit.com/apps/go-clone@latest go install go.wit.com/apps/go-mod-clean@latest go-clone --recusive go.wit.com/lib/git2go Signed-off-by: Jeff Carr --- remote.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'remote.go') diff --git a/remote.go b/remote.go index a294ca2..7a816ac 100644 --- a/remote.go +++ b/remote.go @@ -12,6 +12,7 @@ import "C" import ( "crypto/x509" "errors" + "fmt" "reflect" "runtime" "strings" @@ -685,7 +686,7 @@ func (c *RemoteCollection) Create(name string, url string) (*Remote, error) { return remote, nil } -//CreateWithOptions Creates a repository object with extended options. +// CreateWithOptions Creates a repository object with extended options. func (c *RemoteCollection) CreateWithOptions(url string, option *RemoteCreateOptions) (*Remote, error) { remote := &Remote{repo: c.repo} @@ -983,7 +984,9 @@ func populateFetchOptions(copts *C.git_fetch_options, opts *FetchOptions, errorT } populateRemoteCallbacks(&copts.callbacks, &opts.RemoteCallbacks, errorTarget) copts.prune = C.git_fetch_prune_t(opts.Prune) - copts.update_fetchhead = cbool(opts.UpdateFetchhead) + fmt.Println("populateFetchOptions() is broken. fixme!") + // fix this line: ./remote.go:988:27: cannot use cbool(opts.UpdateFetchhead) (value of type _Ctype_int) as _Ctype_uint value in assignment + // copts.update_fetchhead = cbool(opts.UpdateFetchhead) copts.download_tags = C.git_remote_autotag_option_t(opts.DownloadTags) copts.custom_headers = C.git_strarray{ -- cgit v1.2.3