示例#1
0
 /// <exception cref="NGit.Errors.TransportException"></exception>
 protected internal override void DoPush(ProgressMonitor monitor, IDictionary <string
                                                                               , RemoteRefUpdate> refUpdates)
 {
     TransportHttp.Service svc = new TransportHttp.MultiRequestService(_enclosing, TransportHttp
                                                                       .SVC_RECEIVE_PACK);
     this.Init(svc.GetInputStream(), svc.GetOutputStream());
     base.DoPush(monitor, refUpdates);
 }
示例#2
0
 /// <exception cref="NGit.Errors.TransportException"></exception>
 protected internal override void DoFetch(ProgressMonitor monitor, ICollection <Ref
                                                                                > want, ICollection <ObjectId> have)
 {
     try
     {
         this.svc = new TransportHttp.MultiRequestService(_enclosing, TransportHttp.SVC_UPLOAD_PACK
                                                          );
         this.Init(this.svc.GetInputStream(), this.svc.GetOutputStream());
         base.DoFetch(monitor, want, have);
     }
     finally
     {
         this.svc = null;
     }
 }