<feed xmlns='http://www.w3.org/2005/Atom'>
<title>jcarr/git2go/clone_test.go, branch v0.0.35</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<id>http://cgit.wit.com/jcarr/git2go/atom?h=v0.0.35</id>
<link rel='self' href='http://cgit.wit.com/jcarr/git2go/atom?h=v0.0.35'/>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/'/>
<updated>2021-10-23T17:33:10Z</updated>
<entry>
<title>bugfix:  HTTPS Clone fails with remote pointer not found using Go transport (#836) (#842)</title>
<updated>2021-10-23T17:33:10Z</updated>
<author>
<name>Yashodhan Ghadge</name>
<email>codexetreme@users.noreply.github.com</email>
</author>
<published>2021-10-23T17:33:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=0e8009f00a65034d196c67b1cdd82af6f12c34d3'/>
<id>urn:sha1:0e8009f00a65034d196c67b1cdd82af6f12c34d3</id>
<content type='text'>
Fixes: #836 

Changes:

* adding a weak bool param for Remote
* create a new remote in the smartTransportCallback incase one is not found</content>
</entry>
<entry>
<title>The big Callback type adjustment of 2020</title>
<updated>2021-09-06T01:52:01Z</updated>
<author>
<name>lhchavez</name>
<email>lhchavez@lhchavez.com</email>
</author>
<published>2020-12-02T03:11:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=5def02a589a2c1653f4bb515fdec290361a222be'/>
<id>urn:sha1:5def02a589a2c1653f4bb515fdec290361a222be</id>
<content type='text'>
This change makes all callbacks that can fail return an `error`. This
makes things a lot more idiomatic.
</content>
</entry>
<entry>
<title>Ensure that no pointer handles leak during the test (#712)</title>
<updated>2020-12-10T13:35:40Z</updated>
<author>
<name>lhchavez</name>
<email>lhchavez@lhchavez.com</email>
</author>
<published>2020-12-10T13:35:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=e28cce87c7551bffa1f4602ff492348f9a8cba60'/>
<id>urn:sha1:e28cce87c7551bffa1f4602ff492348f9a8cba60</id>
<content type='text'>
This change makes sure that pointer handles are correctly cleaned up
during tests.</content>
</entry>
<entry>
<title>Mark some symbols to be deprecated #minor (#698)</title>
<updated>2020-12-05T15:23:44Z</updated>
<author>
<name>lhchavez</name>
<email>lhchavez@lhchavez.com</email>
</author>
<published>2020-12-05T15:23:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=137c05e802d5e11a5ab54809bc8be8f61ccece21'/>
<id>urn:sha1:137c05e802d5e11a5ab54809bc8be8f61ccece21</id>
<content type='text'>
This change introduces the file deprecated.go, which contains any
constants, functions, and types that are slated to be deprecated in the
next major release.

These symbols are deprecated because they refer to old spellings in
pre-1.0 libgit2. This also makes the build be done with the
`-DDEPRECATE_HARD` flag to avoid regressions.

This, together with
[gorelease](https://godoc.org/golang.org/x/exp/cmd/gorelease)[1] should
make releases safer going forward.

1: More information about how that works at
   https://go.googlesource.com/exp/+/refs/heads/master/apidiff/README.md</content>
</entry>
<entry>
<title>Run the tests in parallel</title>
<updated>2016-08-27T17:21:05Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2016-08-27T17:21:05Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=e55c00eca7e70e2d02860cda3cdc9169a88ece36'/>
<id>urn:sha1:e55c00eca7e70e2d02860cda3cdc9169a88ece36</id>
<content type='text'>
This saves about 1s, or 1/3 of the test runtime. The linking is still
much slower, but this we can control.
</content>
</entry>
<entry>
<title>Merge branch 'next'</title>
<updated>2015-08-31T11:55:46Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-08-31T11:49:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=f72db33baf9a47fc8b0d0ad8e83881eba235b532'/>
<id>urn:sha1:f72db33baf9a47fc8b0d0ad8e83881eba235b532</id>
<content type='text'>
</content>
</entry>
<entry>
<title>clone: improve handling of remote create callback</title>
<updated>2015-08-18T12:01:51Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2015-08-12T10:44:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=0b530c15cfff492e61c7afae55888fe1eeffe214'/>
<id>urn:sha1:0b530c15cfff492e61c7afae55888fe1eeffe214</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Clone: test we clone something usable and fix constructor</title>
<updated>2015-06-30T17:08:29Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2015-06-30T17:08:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=b6811196e4f7728b25ab37ce2a0862aa74c22253'/>
<id>urn:sha1:b6811196e4f7728b25ab37ce2a0862aa74c22253</id>
<content type='text'>
Clone was still trying to do its own initialisation, which was missing
all of the namespacing changes.
</content>
</entry>
<entry>
<title>tests: always clean up temporary repository dirs</title>
<updated>2015-04-24T11:01:51Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2015-04-24T10:59:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=e300945a3d456af1b619447347cd19a779b7a8f5'/>
<id>urn:sha1:e300945a3d456af1b619447347cd19a779b7a8f5</id>
<content type='text'>
Some test repositories are not correctly removed after the tests
did run. Fix by introducing a function that is to be used for
cleaning up temporary test repositories.
</content>
</entry>
<entry>
<title>Clean up after the tests</title>
<updated>2014-03-19T07:15:19Z</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>cmn@dwim.me</email>
</author>
<published>2014-03-19T07:03:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.wit.com/jcarr/git2go/commit/?id=3ae9813fca2837601e5a7c801972396a59e1eb59'/>
<id>urn:sha1:3ae9813fca2837601e5a7c801972396a59e1eb59</id>
<content type='text'>
</content>
</entry>
</feed>
