aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Sallembien2009-12-22 14:02:24 (EST)
committerNico Sallembien2009-12-22 14:02:24 (EST)
commita8817ed77f087bf9eec39c315f29f4537eb9b730 (patch)
treeafa463a26eb90bd7f8281287d04d7da4087a1f3c
parent7eef835ad50971bf6ecc3fcff2ebd9558757c28f (diff)
downloadjgit-a8817ed77f087bf9eec39c315f29f4537eb9b730.zip
jgit-a8817ed77f087bf9eec39c315f29f4537eb9b730.tar.gz
jgit-a8817ed77f087bf9eec39c315f29f4537eb9b730.tar.bz2
Fix typo in ReceivePack.javarefs/changes/55/155/1
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 26b66db..6aa64cc 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;