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

Commit e4c74ba

Browse files
There is no gitconfig resource to extract
1 parent e1a2659 commit e4c74ba

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class GitInstaller : IGitInstaller
1313
private const string TempPathPrefix = "github-unity-portable";
1414
private const string GitZipFile = "git.zip";
1515
private const string GitLfsZipFile = "git-lfs.zip";
16-
private NPath gitConfigDestinationPath;
1716

1817
private readonly CancellationToken cancellationToken;
1918
private readonly IEnvironment environment;
@@ -68,15 +67,13 @@ public GitInstaller(IEnvironment environment, IZipHelper sharpZipLibHelper, IFil
6867
GitDestinationPath = GitDestinationPath.Combine(GitExecutable);
6968

7069
GitLfsDestinationPath = PackageDestinationDirectory;
71-
gitConfigDestinationPath = PackageDestinationDirectory;
70+
7271
if (DefaultEnvironment.OnWindows)
7372
{
7473
GitLfsDestinationPath = GitLfsDestinationPath.Combine("mingw32");
75-
gitConfigDestinationPath = gitConfigDestinationPath.Combine("mingw32");
7674
}
77-
GitLfsDestinationPath = GitLfsDestinationPath.Combine("libexec", "git-core", GitLfsExecutable);
78-
gitConfigDestinationPath = gitConfigDestinationPath.Combine("etc", "gitconfig");
7975

76+
GitLfsDestinationPath = GitLfsDestinationPath.Combine("libexec", "git-core", GitLfsExecutable);
8077
}
8178

8279
public bool IsExtracted()
@@ -138,12 +135,6 @@ public async Task<bool> SetupIfNeeded(IProgress<float> zipFileProgress = null, I
138135

139136
ret &= await SetupGitLfsIfNeeded(tempPath, zipFileProgress, estimatedDurationProgress);
140137

141-
var archiveFilePath = AssemblyResources.ToFile(ResourceType.Platform, "gitconfig", tempPath);
142-
if (archiveFilePath.FileExists())
143-
{
144-
archiveFilePath.Copy(gitConfigDestinationPath);
145-
}
146-
147138
tempPath.Delete();
148139
return ret;
149140
}

0 commit comments

Comments
 (0)