WIP: страницы для правил #62

Closed
Ghost wants to merge 132 commits from master into 61-rules-pages
Showing only changes of commit 220854401e - Show all commits

View File

@ -31,6 +31,8 @@ public class GitRepository extends BaseEntity {
} }
private String removeDotGit(String prevName) { private String removeDotGit(String prevName) {
return prevName.substring(0, prevName.lastIndexOf(".git")); return prevName.lastIndexOf(".git") > 0
? prevName.substring(0, prevName.lastIndexOf(".git"))
: prevName;
} }
} }