#92 -- gitlab repository id #93

Merged
romanov73 merged 3 commits from 92-id-gitlab into master 2023-02-20 14:25:20 +04:00
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) {
return prevName.substring(0, prevName.lastIndexOf(".git"));
return prevName.lastIndexOf(".git") > 0
? prevName.substring(0, prevName.lastIndexOf(".git"))
: prevName;
}
}