#### fixes \r
\r
- Uppercase repositories not selectable in edit palettes (issue 71)\r
+- Not all git notes were properly displayed on the commit page (issue 70)\r
- Activity page now displays all local branches (issue 65)\r
- Fixed (harmless) nullpointer on pushing to an empty repository (issue 69)\r
- Fixed possible nullpointer from the servlet container on startup (issue 67)\r
List<RefModel> noteBranches = getNoteBranches(repository, true, -1);\r
for (RefModel notesRef : noteBranches) {\r
RevTree notesTree = JGitUtils.getCommit(repository, notesRef.getName()).getTree();\r
+ // flat notes list\r
+ String notePath = commit.getName();\r
+ String text = getStringContent(repository, notesTree, notePath);\r
+ if (!StringUtils.isEmpty(text)) {\r
+ List<RevCommit> history = getRevLog(repository, notesRef.getName(), notePath, 0, -1);\r
+ RefModel noteRef = new RefModel(notesRef.displayName, null, history.get(history\r
+ .size() - 1));\r
+ GitNote gitNote = new GitNote(noteRef, text);\r
+ list.add(gitNote);\r
+ continue;\r
+ }\r
+ \r
+ // folder structure\r
StringBuilder sb = new StringBuilder(commit.getName());\r
sb.insert(2, '/');\r
- String notePath = sb.toString();\r
- String text = getStringContent(repository, notesTree, notePath);\r
+ notePath = sb.toString();\r
+ text = getStringContent(repository, notesTree, notePath);\r
if (!StringUtils.isEmpty(text)) {\r
List<RevCommit> history = getRevLog(repository, notesRef.getName(), notePath, 0, -1);\r
RefModel noteRef = new RefModel(notesRef.displayName, null, history.get(history\r