summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2017-09-03 19:49:30 +0200
committerCarlos Martín Nieto <[email protected]>2017-09-03 19:49:30 +0200
commit0ebe7220d7d82629168f03eb9d3257ee1476cca9 (patch)
tree318f635aecd619189ccbfe8ac3d805c0409f984b
parentecf4f7a137ba69014d414b8de20eb58e115bfd73 (diff)
Go back to the v0.26 libgit2 release
Newer commits have changed the build scripts such that the HTTP parser is not included in the static library. This also reverts commit ecf4f7a137ba69014d414b8de20eb58e115bfd73.
-rw-r--r--patch.go2
m---------vendor/libgit20
2 files changed, 1 insertions, 1 deletions
diff --git a/patch.go b/patch.go
index 7e6f71d..75e843c 100644
--- a/patch.go
+++ b/patch.go
@@ -69,7 +69,7 @@ func (v *Repository) PatchFromBuffers(oldPath, newPath string, oldBuf, newBuf []
var patchPtr *C.git_patch
oldPtr := toPointer(oldBuf)
- newPtr := toPointer(newBuf)
+ newPtr := (*C.char)(toPointer(newBuf))
cOldPath := C.CString(oldPath)
defer C.free(unsafe.Pointer(cOldPath))
diff --git a/vendor/libgit2 b/vendor/libgit2
-Subproject 3c21645360a0b06d6ed5f028e9517d65f8e11bc
+Subproject 15e119375018fba121cf58e02a9f17fe22df0df