Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 5f5af76

Browse files
Download functionality that is not working presently
1 parent fc941f0 commit 5f5af76

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ private ITask<NPath> BuildDetermineGitPathTask()
116116
var gitArchivePath = zipArchivesPath.Combine("git.zip");
117117
var gitLfsArchivePath = zipArchivesPath.Combine("git-lfs.zip");
118118

119-
// var zipArchivesPath = NPath.CreateTempDirectory("portable_git_zip").CreateDirectory();
120-
// var gitArchivePath = AssemblyResources.ToFile(ResourceType.Platform, "git.zip", zipArchivesPath, Environment);
121-
// var gitLfsArchivePath = AssemblyResources.ToFile(ResourceType.Platform, "git-lfs.zip", zipArchivesPath, Environment);
122-
123119
var downloadGitMd5Task = new DownloadTextTask(CancellationToken,
124120
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git.zip.MD5");
125121

@@ -136,11 +132,12 @@ private ITask<NPath> BuildDetermineGitPathTask()
136132
var downloadGitLfsTask = new DownloadTask(CancellationToken, Environment.FileSystem,
137133
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git-lfs.zip", gitLfsArchivePath);
138134

139-
downloadGitLfsMd5Task.Then((b, s) => {
140-
downloadGitTask.ValidationHash = s;
141-
}).Then(downloadGitTask);
135+
downloadGitLfsTask = downloadGitLfsMd5Task.Then((b, s) => {
136+
downloadGitLfsTask.ValidationHash = s;
137+
}).Then(downloadGitLfsTask);
142138

143-
var installTask = new PortableGitInstallTask(CancellationToken, Environment, gitArchivePath, gitLfsArchivePath, installDetails);
139+
var installTask = downloadGitTask.Then(downloadGitLfsTask)
140+
.Then(new PortableGitInstallTask(CancellationToken, Environment, gitArchivePath, gitLfsArchivePath, installDetails));
144141

145142
determinePath = determinePath
146143
.Then(new ShortCircuitTask<NPath>(CancellationToken, installTask))

0 commit comments

Comments
 (0)