summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Sallembien <nsallembien@google.com>2009-12-22 11:02:24 -0800
committerNico Sallembien <nsallembien@google.com>2009-12-22 11:02:24 -0800
commita8817ed77f087bf9eec39c315f29f4537eb9b730 (patch)
treeafa463a26eb90bd7f8281287d04d7da4087a1f3c
parent7eef835ad50971bf6ecc3fcff2ebd9558757c28f (diff)
downloadjgit-a8817ed77f087bf9eec39c315f29f4537eb9b730.tar.gz
jgit-a8817ed77f087bf9eec39c315f29f4537eb9b730.zip
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.
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
index 26b66db403..6aa64cc46a 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivePack.java
@@ -669,8 +669,8 @@ public class ReceivePack {
}
if (ref != null) {
- // A well behaved client shouldn't have sent us an
- // update command for a ref we advertised to it.
+ // A well behaved client shouldn't have sent us a
+ // create command for a ref we advertised to it.
//
cmd.setResult(Result.REJECTED_OTHER_REASON, "ref exists");
continue;