[JGIT PATCH 12/21] WalkTransport must allow subclasses to implement openPush

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If a walk implementation actually supports push (such as HTTP
push via WebDAV) we need to override openPush to return back
a valid PushConnection, however construction could fail with
a TransportException.

Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx>
---
 .../org/spearce/jgit/transport/WalkTransport.java  |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/WalkTransport.java b/org.spearce.jgit/src/org/spearce/jgit/transport/WalkTransport.java
index e208b12..b3ea4aa 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/transport/WalkTransport.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/WalkTransport.java
@@ -38,6 +38,7 @@
 package org.spearce.jgit.transport;
 
 import org.spearce.jgit.errors.NotSupportedException;
+import org.spearce.jgit.errors.TransportException;
 import org.spearce.jgit.lib.Repository;
 
 /**
@@ -58,7 +59,8 @@ abstract class WalkTransport extends Transport {
 	}
 
 	@Override
-	public PushConnection openPush() throws NotSupportedException {
+	public PushConnection openPush() throws NotSupportedException,
+			TransportException {
 		final String s = getURI().getScheme();
 		throw new NotSupportedException("Push not supported over " + s + ".");
 	}
-- 
1.5.6.74.g8a5e

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux