Created
September 28, 2013 11:31
-
-
Save DinisCruz/6741159 to your computer and use it in GitHub Desktop.
Script to clone all TM repos locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var baseFolder = @"E:\TeamMentor\Libraries\SI Library"; | |
| var contentRepo = "git@github.com:TMContent/{0}.git"; | |
| var libraries = new [] { "Lib_PHP", "Lib_CWE", "Lib_iOS","Lib_Android", "Lib_PCI_DSS_Compliance", | |
| "Lib_.NET_4.0", "Lib_.NET_3.5", "Lib_.NET_2.0","Lib_Java", "Lib_CPP", | |
| "Lib_Vulnerabilities", "Lib_Scala", "Lib_HTML5" }; | |
| var stopWatch = utils.new_Stopwatch(); | |
| foreach(var library in libraries) | |
| { | |
| var gitRepo = contentRepo.format(library); | |
| var targetFolder = baseFolder.pathCombine(library); | |
| if (targetFolder.isNotGitRepository()) | |
| gitRepo.git_Clone(targetFolder); | |
| } | |
| return "Cloning took: " + stopWatch.stop().minutes_Seconds_And_Miliseconds(); | |
| //using FluentSharp.Git | |
| //O2Ref:FluentSharp.NGit.dll |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment