Fixes repo name detection

This commit is contained in:
Cyberboss
2017-11-11 23:21:35 -05:00
parent bccabade23
commit c6a7ca69af
+1 -1
View File
@@ -117,7 +117,7 @@ namespace TGControlPanel
//Assume standard gh format: [(git)|(https)]://github.com/owner/repo(.git)[0-1]
var splits = remote.Split('/');
name = splits[splits.Length - 1];
owner = splits[splits.Length - 2];
owner = splits[splits.Length - 2].Split('.')[0];
return true;
}
}