Skip to content

Commit 5e37717

Browse files
committed
Fixed an incorrect candidate submodule name (issue-266)
1 parent 889e695 commit 5e37717

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

releases.moxie

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ r17: {
5151
- Ignore orphan ".git" folder in the repositories root folder (issue-256)
5252
- Fixed bug where a null permission was added to a user model on a repository rename when the permission had really been inherited from a team membership (issue-259)
5353
- Fixed committer verification with merge commits (issue-264)
54+
- Fixed bug in submodule repository linking (issue-266)
5455
- Could not reset settings with $ or { characters through Gitblit Manager because they are not properly escaped
5556
- Added more error checking to blob page and blame page
5657
- Disable SNI extensions for client SSL connections

src/main/java/com/gitblit/wicket/pages/RepositoryPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ protected SubmoduleModel getSubmodule(String path) {
446446
if (submoduleName.lastIndexOf('/') > -1) {
447447
String name = submoduleName.substring(submoduleName.lastIndexOf('/') + 1);
448448
candidates.add(currentPath + StringUtils.stripDotGit(name));
449-
candidates.add(currentPath + candidates.get(candidates.size() - 1) + ".git");
449+
candidates.add(candidates.get(candidates.size() - 1) + ".git");
450450
}
451451

452452
// absolute

src/main/java/com/gitblit/wicket/panels/HistoryPanel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected SubmoduleModel getSubmodule(Map<String, SubmoduleModel> submodules, St
309309
if (submoduleName.lastIndexOf('/') > -1) {
310310
String name = submoduleName.substring(submoduleName.lastIndexOf('/') + 1);
311311
candidates.add(currentPath + StringUtils.stripDotGit(name));
312-
candidates.add(currentPath + candidates.get(candidates.size() - 1) + ".git");
312+
candidates.add(candidates.get(candidates.size() - 1) + ".git");
313313
}
314314

315315
// absolute

0 commit comments

Comments
 (0)