Carlos Martín Nieto
b63157de51
http: propagate error codes
2017-07-09 13:49:53 +02:00
Carlos Martín Nieto
6fe4f461f6
http: stream POST contents
...
This lets us stream the data straight from the creation of the packfile, instead
of having to buffer it all in memory.
2017-07-09 13:15:11 +02:00
Carlos Martín Nieto
2d54afed61
http: add casts
2017-07-09 13:15:11 +02:00
Carlos Martín Nieto
b2ec6e6bfc
travis: don't go recursive with the submodules
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
22da146353
http: set the proxy from the user-given options
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
50f588fcc4
error: don't read an error string on ErrUser
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
c5e6dc298e
http: correct EOF from stream and do send out our buffered data
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
dd57a6a89b
vendor: update libgit2 to a1023a430
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
2aa2ae5150
fixup! http: call the credentials callback when facing a 401
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
1339ad1e71
http: add casts because Go doesn't believe in const
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
e2eda97316
http: call the credentials callback when facing a 401
...
The test for now just tests that we can handle returning a `GIT_EUSER` if the
caller decides to abort.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
464c24ab07
remote: add a test to see that we're calling the credentials callback
...
This does get called when we use the libgit2 stack, but is not yet something the
Go one does.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
e80ae1125a
fixup! Add a managed HTTP(S) transport implementation
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
c726f932db
http: use an environment-provided proxy
...
We currently cannot ask the transport for its proxy settings, so for now we'll
use the one from the environment.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
1be680fdf0
Add a managed HTTP(S) transport implementation
...
This implements a "smart subtransport" which lets us implement just the I/O
portion and leave the Git Smart Protocol logic in the library.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto
2cff3f2ef4
Merge pull request #396 from libgit2/cmn/rebase-no-operation
...
rebase: correct the return values for CurrentOperationIndex
2017-07-08 22:22:54 +02:00
Carlos Martín Nieto
b98b0e7640
rebase: correct the return values for CurrentOperationIndex
...
We were incorectly reporting `C.GIT_REBASE_NO_OPERATION` as an error code when
it is none. We should instead return it as the value. The compiler doesn't seem
to actually look at the sizes so instead we must recreate the value ourselves
with `^uint(0)`.
The error return is kept for API compatibility but should go away eventually.
2017-07-08 21:34:10 +02:00
Carlos Martín Nieto
ce65c2303e
Merge pull request #395 from libgit2/cmn/check-thread-lock
...
Deduplicate Makefile static target and add thread locking check
2017-07-08 20:49:16 +02:00
Carlos Martín Nieto
27d123f631
Deduplicate Makefile static target and add thread locking check
...
It turns out we had been running CI without performing the thread locking check.
2017-07-08 18:24:41 +02:00
Carlos Martín Nieto
08db2e2c16
Merge pull request #393 from libgit2/cmn/keepalive-all-the-things
...
KeepAlive all the things
2017-07-08 16:51:22 +02:00
Carlos Martín Nieto
55a1096141
Third round of keep-alive aditions
2017-07-08 16:07:51 +02:00
Carlos Martín Nieto
7d29d68644
Second round of keep-alives
2017-07-08 11:38:19 +02:00
Carlos Martín Nieto
58334cf604
First round of mass keep-alive additions
2017-07-08 09:11:38 +02:00
Carlos Martín Nieto
0e9336be3f
commit: add keep-alives for those that need conversion to pointer receivers
...
We can't work on the copies here, we need to have pointer receivers so we know
we're keeping alive the object whose finalizer would free the unmanaged memory
we're working with.
2017-07-07 23:36:04 +02:00
Carlos Martín Nieto
5d466ffbc0
commit: add thread locking to signature extraction
2017-07-07 23:24:54 +02:00
Carlos Martín Nieto
29c0b73007
Merge pull request #389 from KatolaZ/master
...
Added Commit.ExtractSignature to wrap git_commit_extract_signature
2017-07-06 22:22:03 +02:00
Carlos Martín Nieto
7929e49881
Merge pull request #390 from libgit2/cmn/go-vet
...
Fix a couple of issues reported by go-vet
2017-07-06 22:20:00 +02:00
Carlos Martín Nieto
b09f1ab739
Fix a couple of issues reported by go-vet
2017-07-06 21:09:01 +02:00
KatolaZ
f7e15669c8
Added Commit.ExtractSignature to wrap git_commit_extract_signature
2017-07-06 08:40:58 +01:00
Carlos Martín Nieto
c71c935ad1
Merge pull request #387 from libgit2/cmn/remote-refs
...
remote: add keep-alive and references to the repository
2017-07-04 14:09:42 +02:00
Carlos Martín Nieto
bcf8c1bf40
travis: update the Go versions
...
We need to use `runtime.KeepAlive()` which only exists past Go 1.7. Furthermore,
Go 1.7 is the latest supported by the language team.
2017-07-04 13:02:12 +02:00
Carlos Martín Nieto
544d29e18b
remote: add keep-alive and references to the repository
...
Especially in 1.8, the garbage collector can decide to finalize an object even
as we are in one of its methods. This means it can free a remote while we're in
one of its calls, as we're referencing the pointer inside the object, rather
than the `Remote` itself.
2017-07-04 12:53:51 +02:00
Carlos Martín Nieto
daee43b891
Merge pull request #376 from ankurmittal/short-hash
...
Add support for getting short object Id
2017-05-20 19:17:15 +02:00
Ankur Mittal
7caac1fa7b
Add support for getting short object Id
2017-04-19 18:42:13 -07:00
Carlos Martín Nieto
7cd5a4e731
Merge pull request #371 from libgit2/static-dynamic
...
Allow building statically via the "static" build tag
2017-04-14 13:11:28 +02:00
Carlos Martín Nieto
e7747d3174
travis: build statically
2017-04-14 12:51:13 +02:00
Carlos Martín Nieto
5001942b59
Allow building statically via the "static" build tag
2017-04-14 12:36:42 +02:00
Carlos Martín Nieto
71bdf97227
Merge pull request #366 from LinuxBozo/repository-open-flags
...
Add new repository open flags
2017-04-14 10:48:01 +02:00
Carlos Martín Nieto
490e8a8722
Merge pull request #368 from cbguder/master
...
Fix memory leak in Patch.String()
2017-04-14 10:47:39 +02:00
Carlos Martín Nieto
89fc9e7761
Merge pull request #365 from AaronO/fix/memleak-tree-entrybyname
...
Fix memleaks in Tree.EntryBy(Name/Path/Index), fixes #313
2017-04-13 21:16:30 +02:00
Carlos Martín Nieto
97f1722244
Merge pull request #332 from ezwiebel/rebase-wrapper
...
Rebase wrapper
2017-04-13 20:50:41 +02:00
Adam Berkovec
de521bb2b4
Fix memory leak in Patch.String()
...
Buffer allocated in Patch.String() was never freed
Signed-off-by: Can Berk Güder <cbguder@pivotal.io>
2017-03-23 12:16:43 -07:00
M. Adam Kendall
7738ebe30a
Add new repository open flags
2017-03-07 23:23:24 -05:00
Aaron O'Mullan
ee2a023868
Remove unnecessary C.git_tree_entry_free calls ...
...
As per the docs, these entries belong to the tree and don’t need to be
freed by the caller:
*
https://libgit2.github.com/libgit2/#HEAD/group/tree/git_tree_entry_bynam
e
2017-02-25 02:13:57 +01:00
Aaron O'Mullan
f503d918aa
Fix memleaks in Tree.EntryBy(Name/Path/Index), fixes #313
2017-02-24 22:55:14 +01:00
Carlos Martín Nieto
4a14260153
Merge pull request #362 from libgit2/cmn/master-tip-static
...
Update master to latest libgit2 and build statically
2017-01-20 22:55:25 +00:00
Carlos Martín Nieto
b020c1140a
Update the description of the branches in README.
2017-01-20 13:48:39 +00:00
Carlos Martín Nieto
9f4e0a46b6
Update libgit2 to df4dfaad
2017-01-20 13:20:30 +00:00
Carlos Martín Nieto
f037074198
Merge remote-tracking branch 'origin/next'
2017-01-20 00:46:34 +00:00
Carlos Martín Nieto
5d0a4c752a
Bump vendored libgit2 to ee89941fa
2017-01-09 22:13:18 +00:00