| Age | Commit message (Collapse) | Author |
|
freeCheckoutOpts called twice
|
|
When libgit2 gives us the repository for us to create the remote in, we
do not own it, so we must make sure we don't try to free it.
|
|
|
|
The clone options contain fields for ae remote create callback
and its payload, which can be used to override the behavior when
the default remote is being created for newly cloned
repositories.
Currently we only accept a C function as callback, though, making
it overly complicated to use it. We also unconditionally `free`
the payload if its address is non-`nil`, which may cause the
program to segfault when the memory is not dynamically allocated.
Instead, we want callers to provide a Go function that is
subsequently being called by us. To do this, we introduce an
indirection such that we are able to extract the provided
function and payload when being called by `git_clone` and handle
the return values of the user-provided function.
|
|
Clone was still trying to do its own initialisation, which was missing
all of the namespacing changes.
|
|
Conflicts:
branch.go
|
|
This wasn't ported together with the rest, but it does exhibit the same
issues, so let's port it over now.
|
|
|
|
TargetDirectory field indicates a alternative checkout path to workdir.
|
|
|
|
The option to ignore the server's certificate has been removed, replaced
witha callback for the user to perform their own checking.
Remote.Fetch() now performs opportunistic updates and takes a list of
refspecs to use as the active set for a particular fetch.
|
|
Remove missing constants.
|
|
|
|
|
|
|
|
|
|
|
|
|