Add message if couldn't find specific branch

Took 5 minutes
This commit is contained in:
Andrew Baker 2021-04-29 11:37:51 -07:00
parent 866e0e3fa9
commit 28e809f92f
No known key found for this signature in database
GPG Key ID: 3FCE714EE83225D7

View File

@ -208,6 +208,7 @@ public class ProjectManager
*/ */
String branch = getListing(false).get(key).replaceAll("^[^/]*(?:/[^/]*)", ""); String branch = getListing(false).get(key).replaceAll("^[^/]*(?:/[^/]*)", "");
if(branch == null || branch.equals("")) { if(branch == null || branch.equals("")) {
sender.sendMessage("Couldn't find specific branch, assuming master");
branch = "/master"; branch = "/master";
} }
if(repo == null) if(repo == null)