diff options
author | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-09-24 15:23:34 -0500 |
---|---|---|
committer | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-09-27 10:16:22 -0500 |
commit | 6b6c8dd01bb1b4c83bcf899b1cff7b67de6a354c (patch) | |
tree | 92f83bd5e0421d82dbf9129185e50413a40e0eac /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java | |
parent | 153c796bce7ed47be32866db62163bd45d2c25e6 (diff) | |
download | jgit-6b6c8dd01bb1b4c83bcf899b1cff7b67de6a354c.tar.gz jgit-6b6c8dd01bb1b4c83bcf899b1cff7b67de6a354c.zip |
Update Fetch to use FetchCommand API
Change-Id: I06ddc74f1ef658f4876e2bbcc3eaad3475a5371e
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java index fd7fd4459b..6624d49a26 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java @@ -57,14 +57,13 @@ import org.eclipse.jgit.lib.ObjectReader; import org.eclipse.jgit.lib.RefUpdate; import org.eclipse.jgit.transport.FetchResult; import org.eclipse.jgit.transport.TrackingRefUpdate; -import org.eclipse.jgit.transport.Transport; import org.kohsuke.args4j.Option; abstract class AbstractFetchCommand extends TextBuiltin { @Option(name = "--verbose", aliases = { "-v" }, usage = "usage_beMoreVerbose") private boolean verbose; - protected void showFetchResult(final Transport tn, final FetchResult r) { + protected void showFetchResult(final FetchResult r) { ObjectReader reader = db.newObjectReader(); try { boolean shownURI = false; @@ -78,7 +77,7 @@ abstract class AbstractFetchCommand extends TextBuiltin { final String dst = abbreviateRef(u.getLocalName(), true); if (!shownURI) { - out.format(CLIText.get().fromURI, tn.getURI()); + out.format(CLIText.get().fromURI, r.getURI()); out.println(); shownURI = true; } |