Преглед изворни кода

Fix a typo in "capabilities" in ReceivePack

Change-Id: Ib26adf954dcb90403be9d6ed3b7a425a724c67d0
tags/v2.0.0.201206130900-r
Dave Borowitz пре 12 година
родитељ
комит
eea8581da5
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6
    6
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

+ 6
- 6
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java Прегледај датотеку

private Set<ObjectId> advertisedHaves; private Set<ObjectId> advertisedHaves;


/** Capabilities requested by the client. */ /** Capabilities requested by the client. */
private Set<String> enabledCapablities;
private Set<String> enabledCapabilities;


/** Commands to execute, as received by the client. */ /** Commands to execute, as received by the client. */
private List<ReceiveCommand> commands; private List<ReceiveCommand> commands;
pckOut = new PacketLineOut(rawOut); pckOut = new PacketLineOut(rawOut);
pckOut.setFlushOnEnd(false); pckOut.setFlushOnEnd(false);


enabledCapablities = new HashSet<String>();
enabledCapabilities = new HashSet<String>();
commands = new ArrayList<ReceiveCommand>(); commands = new ArrayList<ReceiveCommand>();


service(); service();
pckIn = null; pckIn = null;
pckOut = null; pckOut = null;
refs = null; refs = null;
enabledCapablities = null;
enabledCapabilities = null;
commands = null; commands = null;
if (timer != null) { if (timer != null) {
try { try {
final int nul = line.indexOf('\0'); final int nul = line.indexOf('\0');
if (nul >= 0) { if (nul >= 0) {
for (String c : line.substring(nul + 1).split(" ")) for (String c : line.substring(nul + 1).split(" "))
enabledCapablities.add(c);
enabledCapabilities.add(c);
line = line.substring(0, nul); line = line.substring(0, nul);
} }
} }
} }


private void enableCapabilities() { private void enableCapabilities() {
reportStatus = enabledCapablities.contains(CAPABILITY_REPORT_STATUS);
reportStatus = enabledCapabilities.contains(CAPABILITY_REPORT_STATUS);


sideBand = enabledCapablities.contains(CAPABILITY_SIDE_BAND_64K);
sideBand = enabledCapabilities.contains(CAPABILITY_SIDE_BAND_64K);
if (sideBand) { if (sideBand) {
OutputStream out = rawOut; OutputStream out = rawOut;



Loading…
Откажи
Сачувај