Config: do not add spaces before units

Adding a space before the unit ('g', 'm', 'k) causes git to fail with
the error:

  fatal: bad numeric config value

Change-Id: I57f11d3a1cdcca4549858e773af1a2a80fc0369f
Signed-off-by: David Turner <dturner@twosigma.com>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Turner 2016-10-14 16:44:51 -04:00 committed by David Pursehouse
parent 535f0afd13
commit a66b4c29a8
1 changed files with 3 additions and 3 deletions

View File

@ -835,11 +835,11 @@ public void setLong(final String section, final String subsection,
final String s;
if (value >= GiB && (value % GiB) == 0)
s = String.valueOf(value / GiB) + " g"; //$NON-NLS-1$
s = String.valueOf(value / GiB) + "g"; //$NON-NLS-1$
else if (value >= MiB && (value % MiB) == 0)
s = String.valueOf(value / MiB) + " m"; //$NON-NLS-1$
s = String.valueOf(value / MiB) + "m"; //$NON-NLS-1$
else if (value >= KiB && (value % KiB) == 0)
s = String.valueOf(value / KiB) + " k"; //$NON-NLS-1$
s = String.valueOf(value / KiB) + "k"; //$NON-NLS-1$
else
s = String.valueOf(value);