public class TransportGitSsh extends SshTransport implements PackTransport
The SSH transport requires the remote side to have Git installed, as the transport logs into the remote system and executes a Git helper program on the remote side to read (or write) the remote repository's files.
This transport does not support direct SCP style of copying files, as it assumes there are Git specific smarts on the remote side to perform object enumeration, save file modification and hook execution.
Transport.OperationDEFAULT_FETCH_THIN, DEFAULT_PUSH_THIN, local, REFSPEC_PUSH_ALL, REFSPEC_TAGS, uri| Modifier and Type | Method and Description |
|---|---|
FetchConnection |
openFetch()
Begins a new connection for fetching from the remote repository.
|
PushConnection |
openPush()
Begins a new connection for pushing into the remote repository.
|
close, getSession, getSshSessionFactory, setSshSessionFactoryapplyConfig, fetch, findRemoteRefUpdatesFor, findRemoteRefUpdatesFor, getCredentialsProvider, getOptionReceivePack, getOptionUploadPack, getPackConfig, getTagOpt, getTimeout, getTransportProtocols, getURI, isCheckFetchedObjects, isDryRun, isFetchThin, isPushThin, isRemoveDeletedRefs, open, open, open, open, open, open, open, openAll, openAll, openAll, openAll, push, push, register, setCheckFetchedObjects, setCredentialsProvider, setDryRun, setFetchThin, setOptionReceivePack, setOptionUploadPack, setPackConfig, setPushThin, setRemoveDeletedRefs, setTagOpt, setTimeout, unregisterpublic FetchConnection openFetch() throws TransportException
TransportIf the transport has no local repository, the fetch connection can only be used for reading remote refs.
openFetch in class TransportTransportException - the remote connection could not be established.public PushConnection openPush() throws TransportException
TransportopenPush in class TransportTransportException - the remote connection could not be establishedCopyright © 2014. All rights reserved.