|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (C) 2009-2010, Google Inc. |
|
|
|
|
|
|
|
|
* Copyright (C) 2008-2010, Google Inc. |
|
|
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> |
|
|
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> |
|
|
* and other copyright owners as documented in the project's IP log. |
|
|
* and other copyright owners as documented in the project's IP log. |
|
|
* |
|
|
* |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init(advertisement, DisabledOutputStream.INSTANCE); |
|
|
init(advertisement, DisabledOutputStream.INSTANCE); |
|
|
outNeedsEnd = false; |
|
|
outNeedsEnd = false; |
|
|
try { |
|
|
|
|
|
readAdvertisedRefs(); |
|
|
|
|
|
} catch (IOException err) { |
|
|
|
|
|
close(); |
|
|
|
|
|
throw new TransportException(uri, "remote hung up", err); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
readAdvertisedRefs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init(advertisement, DisabledOutputStream.INSTANCE); |
|
|
init(advertisement, DisabledOutputStream.INSTANCE); |
|
|
outNeedsEnd = false; |
|
|
outNeedsEnd = false; |
|
|
try { |
|
|
|
|
|
readAdvertisedRefs(); |
|
|
|
|
|
} catch (IOException err) { |
|
|
|
|
|
close(); |
|
|
|
|
|
throw new TransportException(uri, "remote hung up", err); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
readAdvertisedRefs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
protected void doPush(final ProgressMonitor monitor, |
|
|
protected void doPush(final ProgressMonitor monitor, |