コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }