Use Project.NameKey in GitRepositoryManager

This simplifies all of the calling sites, where they have a
Project.NameKey on hand and would prefer not to invoke .get() to
convert it into a String.

Change-Id: If661fc07cff542a57af3c28f27ab401ce7b3a656
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-12-23 13:03:22 -08:00
parent 4b706ff6cf
commit d2593a24e6
25 changed files with 66 additions and 62 deletions

View File

@@ -116,7 +116,7 @@ public class ScanTrackingIds extends SiteProgram {
final Project.NameKey project = change.getDest().getParentKey();
final Repository git;
try {
git = gitManager.openRepository(project.get());
git = gitManager.openRepository(project);
} catch (RepositoryNotFoundException e) {
return;
}