Suppress non-localized string warnings introduced by If72b4b422
Change-Id: I2e4544d715b4284f544a26f504d01159c5843160 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
parent
901e663a66
commit
5b1c40fe90
|
@ -536,9 +536,9 @@ private boolean sendWants(final Collection<Ref> want) throws IOException {
|
|||
return false;
|
||||
}
|
||||
if (filterBlobLimit == 0) {
|
||||
p.writeString(OPTION_FILTER + " blob:none");
|
||||
p.writeString(OPTION_FILTER + " blob:none"); //$NON-NLS-1$
|
||||
} else if (filterBlobLimit > 0) {
|
||||
p.writeString(OPTION_FILTER + " blob:limit=" + filterBlobLimit);
|
||||
p.writeString(OPTION_FILTER + " blob:limit=" + filterBlobLimit); //$NON-NLS-1$
|
||||
}
|
||||
p.end();
|
||||
outNeedsEnd = false;
|
||||
|
|
|
@ -1026,11 +1026,12 @@ private void recvWants() throws IOException {
|
|||
}
|
||||
filterReceived = true;
|
||||
|
||||
if (arg.equals("blob:none")) {
|
||||
if (arg.equals("blob:none")) { //$NON-NLS-1$
|
||||
filterBlobLimit = 0;
|
||||
} else if (arg.startsWith("blob:limit=")) {
|
||||
} else if (arg.startsWith("blob:limit=")) { //$NON-NLS-1$
|
||||
try {
|
||||
filterBlobLimit = Long.parseLong(arg.substring("blob:limit=".length()));
|
||||
filterBlobLimit = Long.parseLong(
|
||||
arg.substring("blob:limit=".length())); //$NON-NLS-1$
|
||||
} catch (NumberFormatException e) {
|
||||
throw new PackProtocolException(
|
||||
MessageFormat.format(JGitText.get().invalidFilter,
|
||||
|
|
Loading…
Reference in New Issue