summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2015-01-04 17:05:11 +0000
committerCarlos Martín Nieto <[email protected]>2015-01-04 17:05:11 +0000
commitd57246fb74404ed8b18d0d26d2b02b326ffd2cbe (patch)
tree10a2ee2916f886a7324b21e8401b02749a6ff365 /remote.go
parentdff9badc05f5fd98e8f6d002e1537c7ee3ef634f (diff)
Update to libgit2 master
This gets rid of the Push object. All network now goes through the Remote object.
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index 563aba5..3dc22a1 100644
--- a/remote.go
+++ b/remote.go
@@ -108,6 +108,10 @@ type HostkeyCertificate struct {
HashSHA1 [20]byte
}
+type PushOptions struct {
+ PbParallelism uint
+}
+
type RemoteHead struct {
Id *Oid
Name string
@@ -710,7 +714,6 @@ func (o *Remote) Push(refspecs []string, opts *PushOptions, sig *Signature, msg
var copts C.git_push_options
C.git_push_init_options(&copts, C.GIT_PUSH_OPTIONS_VERSION)
if opts != nil {
- copts.version = C.uint(opts.Version)
copts.pb_parallelism = C.uint(opts.PbParallelism)
}