]> source.dussan.org Git - jgit.git/commit
clone: Correct formatting of init message 03/1603/1
authorShawn O. Pearce <spearce@spearce.org>
Wed, 15 Sep 2010 15:44:27 +0000 (08:44 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 15 Sep 2010 15:47:17 +0000 (08:47 -0700)
commita424b7aefebffcd66ed8b0684c0139432c275b29
tree4280d947c2e1c91b8bea83456a382c2f90bfa29d
parent5fce8d81d89a3b9790e93590b919f5af114e8628
clone: Correct formatting of init message

We used the wrong format method, which lead to this confusing output:

  $ ./jgit clone git://...
  Initialized empty Git repository in {0}
  remote: Counting objects: 201783
  ...
  remote: {0}

We need to use MessageFormat.format() as the message translations
use {0} syntax and not %s syntax for placeholders.

Change-Id: I8bf0fd3f7dbecf9edf47419c46aed0493d405f9e
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AbstractFetchCommand.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Clone.java