private void ExtractGitSourceTo(string workingDirectory, string sourcePath, string gitRef, string path) { // FIXME: This assumes packages are being extracted underneath the current // working directory (i.e. the module root). if (GitUtils.IsGitRepository()) { GitUtils.UnmarkIgnored(path); } GitUtils.RunGit(workingDirectory, null, "clone --progress " + sourcePath + " \"" + path + "\""); GitUtils.RunGit(workingDirectory, path, "checkout -f " + gitRef); this.InitializeSubmodulesFromCache(workingDirectory, path); if (GitUtils.IsGitRepository()) { GitUtils.MarkIgnored(path); } }
public void ExtractTo(string path) { // FIXME: This assumes packages are being extracted underneath the current // working directory (i.e. the module root). if (GitUtils.IsGitRepository()) { GitUtils.UnmarkIgnored(path); } GitUtils.RunGit(null, "clone " + this.SourcePath + " " + path); GitUtils.RunGit(path, "checkout -f " + this.GitRef); this.InitializeSubmodulesFromCache(path); if (GitUtils.IsGitRepository()) { GitUtils.MarkIgnored(path); } }