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

Commit 6aa10da

Browse files
The functionality I would like to work
1 parent 8f7e1a1 commit 6aa10da

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

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

119-
var downloadGitMd5Task = new DownloadTextTask(CancellationToken,
120-
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git.zip.MD5");
119+
var downloadGitMd5Task = new DownloadTextTask(CancellationToken.None,
120+
"https://ghfvs-installer.github.com/unity/portable_git/git.zip.MD5.txt?cb=1");
121121

122-
var downloadGitTask = new DownloadTask(CancellationToken, Environment.FileSystem,
123-
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git.zip", gitArchivePath, retryCount: 1);
122+
var downloadGitTask = new DownloadTask(CancellationToken.None, Environment.FileSystem,
123+
"https://ghfvs-installer.github.com/unity/portable_git/git.zip", gitArchivePath, retryCount: 1);
124124

125-
downloadGitTask = downloadGitMd5Task
126-
.Then((b, s) => { downloadGitTask.ValidationHash = s; })
127-
.Then(downloadGitTask);
125+
var downloadGitLfsMd5Task = new DownloadTextTask(CancellationToken.None,
126+
"https://ghfvs-installer.github.com/unity/portable_git/git-lfs.zip.MD5.txt?cb=1");
128127

129-
var downloadGitLfsMd5Task = new DownloadTextTask(CancellationToken,
130-
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git-lfs.zip.MD5");
128+
var downloadGitLfsTask = new DownloadTask(CancellationToken.None, Environment.FileSystem,
129+
"https://ghfvs-installer.github.com/unity/portable_git/git-lfs.zip", gitLfsArchivePath, retryCount: 1);
131130

132-
var downloadGitLfsTask = new DownloadTask(CancellationToken, Environment.FileSystem,
133-
"https://github-vs-s3.amazonaws.com/github-vs/unity/portable_git/git-lfs.zip", gitLfsArchivePath);
134-
135-
downloadGitLfsTask = downloadGitLfsMd5Task.Then((b, s) => {
136-
downloadGitLfsTask.ValidationHash = s;
137-
}).Then(downloadGitLfsTask);
138-
139-
var installTask = downloadGitTask.Then(downloadGitLfsTask)
131+
var installTask = downloadGitMd5Task
132+
.Then((b, s) =>
133+
{
134+
downloadGitTask.ValidationHash = s;
135+
})
136+
.Then(downloadGitTask)
137+
.Then(downloadGitLfsMd5Task)
138+
.Then((b, s) =>
139+
{
140+
downloadGitLfsTask.ValidationHash = s;
141+
})
142+
.Then(downloadGitLfsTask)
140143
.Then(new PortableGitInstallTask(CancellationToken, Environment, gitArchivePath, gitLfsArchivePath, installDetails));
141144

142145
determinePath = determinePath

0 commit comments

Comments
 (0)