From a8817ed77f087bf9eec39c315f29f4537eb9b730 Mon Sep 17 00:00:00 2001
From: Nico Sallembien <nsallembien@google.com>
Date: Tue, 22 Dec 2009 11:02:24 -0800
Subject: [PATCH] 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.
---
 .../src/org/eclipse/jgit/transport/ReceivePack.java           | 4 ++--
 1 file 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 26b66db40..6aa64cc46 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 @@ private void validateCommands() {
 				}
 
 				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;
-- 
GitLab