#92 -- Fix .git removing
This commit is contained in:
parent
a3a032b70b
commit
220854401e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user