Browse Source

Fix typo in ReceivePack.java

The comment indicates that a well-behaved client should not have
sent an update for a ref that already exists, but this in a block
that corresponds to a create command.
stable-0.7
Nico Sallembien 15 years ago
parent
commit
a8817ed77f
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

4
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java

@ -669,8 +669,8 @@ public class ReceivePack {
} }
if (ref != null) { if (ref != null) {
// A well behaved client shouldn't have sent us an // A well behaved client shouldn't have sent us a
// update command for a ref we advertised to it. // create command for a ref we advertised to it.
// //
cmd.setResult(Result.REJECTED_OTHER_REASON, "ref exists"); cmd.setResult(Result.REJECTED_OTHER_REASON, "ref exists");
continue; continue;

Loading…
Cancel
Save