#92 -- gitlab repository id #93
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user