diff options
| author | Jeff Carr <[email protected]> | 2024-12-16 17:50:57 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-16 17:50:57 -0600 |
| commit | 530f3618a8f4c7d9c8d3981548112439b22e09e7 (patch) | |
| tree | 30b529a83767648dd31c8bfa6fff6b6163174909 /remote.go | |
| parent | e65b1c188ccb9b4aa4863ec702c3985c382f53db (diff) | |
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 <[email protected]>
Diffstat (limited to 'remote.go')
| -rw-r--r-- | remote.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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{ |
