Skip to content
Snippets Groups Projects
Commit a8817ed7 authored by Nico Sallembien's avatar Nico Sallembien
Browse files

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.
parent 7eef835a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment