Make Branch.NameKey enforce full ref names

Also remove some now redundant ref fixes before constructing
Branch.NameKeys.  This reduces the proliferation of "correcting" code.

Change-Id: I5d9864d7c6ea7252f05a4ccabcf124cb014c4fae
This commit is contained in:
Martin Fick
2015-04-13 10:41:14 -06:00
committed by David Pursehouse
parent c16ab0df0d
commit 4ddbfc9a8b
6 changed files with 14 additions and 20 deletions

View File

@@ -307,8 +307,7 @@ public class ConsistencyChecker {
return;
}
if (dest == null) {
problem("Destination ref not found (may be new branch): "
+ change.getDest().get());
problem("Destination ref not found (may be new branch): " + refName);
return;
}
RevCommit tip = parseCommit(dest.getObjectId(),