Just remoteName is needed, not a whole RefSpec. Signed-off-by: Marek Zawirski <marek.zawirski@xxxxxxxxx> --- .../spearce/jgit/transport/TrackingRefUpdate.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/TrackingRefUpdate.java b/org.spearce.jgit/src/org/spearce/jgit/transport/TrackingRefUpdate.java index 56234a1..771e77a 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/transport/TrackingRefUpdate.java +++ b/org.spearce.jgit/src/org/spearce/jgit/transport/TrackingRefUpdate.java @@ -49,14 +49,14 @@ import org.spearce.jgit.revwalk.RevWalk; /** Update of a locally stored tracking branch. */ public class TrackingRefUpdate { - private final RefSpec spec; + private final String remoteName; private final RefUpdate update; - TrackingRefUpdate(final Repository db, final RefSpec s, + TrackingRefUpdate(final Repository db, final RefSpec spec, final AnyObjectId nv, final String msg) throws IOException { - spec = s; - update = db.updateRef(s.getDestination()); + remoteName = spec.getSource(); + update = db.updateRef(spec.getDestination()); update.setForceUpdate(spec.isForceUpdate()); update.setNewObjectId(nv); update.setRefLogMessage(msg, true); @@ -70,7 +70,7 @@ public class TrackingRefUpdate { * @return the name used within the remote repository. */ public String getRemoteName() { - return spec.getSource(); + return remoteName; } /** -- 1.5.5.3 -- 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