public static CloneUsingGitExe ( string gitLocation, string targetFolder ) : bool | ||
gitLocation | string | |
targetFolder | string | |
return | bool |
public static TM_UserData_Git clone_UserDataRepo(this TM_UserData_Git userData, string gitLocation, string targetFolder) { var start = DateTime.Now; "[TM_UserData] [GitClone] Start".info(); if (GitExe.CloneUsingGitExe(gitLocation, targetFolder).isFalse()) { "[TM_UserData] [GitClone] Using NGit for the clone".info(); gitLocation.git_Clone(targetFolder); } "\n\n[TM_UserData] [GitClone] in {0}\n\n".debug(start.duration_To_Now()); return(userData); }
public static TM_Xml_Database clone_Library(this TM_Xml_Database tmDatabase, string gitLibrary, string targetFolder) { var start = DateTime.Now; "[TM_Xml_Database] [GitClone] Start".info(); if (GitExe.CloneUsingGitExe(gitLibrary, targetFolder).isFalse()) { "[TM_Xml_Database] [GitClone] Using NGit for the clone".info(); gitLibrary.git_Clone(targetFolder); } "\n\n[TM_UserData] [GitClone] in: {0}\n\n".debug(start.duration_To_Now()); return(tmDatabase); }