示例#1
0
        /// <summary>
        /// Clone external git repo and call prebuild script.
        /// </summary>
        private static void ExternalGit()
        {
            var configCli = ConfigCli.Load();

            // Clone repo
            var externalGit = UtilFramework.StringNull(configCli.ExternalGit);

            if (externalGit != null)
            {
                string externalFolderName = UtilFramework.FolderName + "ExternalGit/";
                if (!UtilCli.FolderNameExist(externalFolderName))
                {
                    Console.WriteLine("Git Clone ExternalGit");
                    UtilCli.FolderCreate(externalFolderName);
                    UtilCli.Start(externalFolderName, "git", "clone --recursive -q" + " " + externalGit); // --recursive clone also submodule Framework -q do not write to stderr on linux
                }
            }
        }