\r
RevCommit commit = JGitUtils.getCommit(r, objectId);\r
PathModel matchingPath = null;\r
- List<PathChangeModel> paths;\r
Map<String, SubmoduleModel> submodules = new HashMap<String, SubmoduleModel>();\r
\r
if (commit == null) {\r
String msg = MessageFormat.format("Failed to find history of **{0}** *{1}*",\r
path, objectId);\r
log.error(msg + " " + repositoryName);\r
- paths = new ArrayList<PathChangeModel>();\r
add(new Label("commitHeader", MarkdownUtils.transformMarkdown(msg)).setEscapeModelStrings(false));\r
add(new Label("breadcrumbs"));\r
} else {\r
// commit found\r
- paths = JGitUtils.getFilesInCommit(r, commit);\r
+ List<PathChangeModel> paths = JGitUtils.getFilesInCommit(r, commit);\r
add(new CommitHeaderPanel("commitHeader", repositoryName, commit));\r
add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));\r
for (SubmoduleModel model : JGitUtils.getSubmodules(r, commit.getTree())) {\r