if (!line.startsWith("want ") || line.length() < 45) //$NON-NLS-1$
throw new PackProtocolException(MessageFormat.format(JGitText.get().expectedGot, "want", line)); //$NON-NLS-1$
- if (isFirst && line.length() > 45) {
- final FirstLine firstLine = new FirstLine(line);
- options = firstLine.getOptions();
- line = firstLine.getLine();
+ if (isFirst) {
+ if (line.length() > 45) {
+ FirstLine firstLine = new FirstLine(line);
+ options = firstLine.getOptions();
+ line = firstLine.getLine();
+ } else
+ options = Collections.emptySet();
}
wantIds.add(ObjectId.fromString(line.substring(5)));