/// <exception cref="NGit.Errors.TransportException"></exception> public override PushConnection OpenPush() { TransportSftp.SftpObjectDB c = new TransportSftp.SftpObjectDB(this, uri.GetPath() ); WalkPushConnection r = new WalkPushConnection(this, c); r.Available(c.ReadAdvertisedRefs()); return(r); }
/// <exception cref="NGit.Errors.TransportException"></exception> internal SftpObjectDB(TransportSftp _enclosing, TransportSftp.SftpObjectDB parent , string p) { this._enclosing = _enclosing; try { this.ftp = this._enclosing.NewSftp(); this.ftp.Cd(parent.objectsPath); this.ftp.Cd(p); this.objectsPath = this.ftp.Pwd(); } catch (TransportException err) { this.Close(); throw; } catch (SftpException je) { throw new TransportException("Can't enter " + p + " from " + parent.objectsPath + ": " + je.Message, je); } }