@@ -13,7 +13,6 @@ class GitInstaller : IGitInstaller
13
13
private const string TempPathPrefix = "github-unity-portable" ;
14
14
private const string GitZipFile = "git.zip" ;
15
15
private const string GitLfsZipFile = "git-lfs.zip" ;
16
- private NPath gitConfigDestinationPath ;
17
16
18
17
private readonly CancellationToken cancellationToken ;
19
18
private readonly IEnvironment environment ;
@@ -68,15 +67,13 @@ public GitInstaller(IEnvironment environment, IZipHelper sharpZipLibHelper, IFil
68
67
GitDestinationPath = GitDestinationPath . Combine ( GitExecutable ) ;
69
68
70
69
GitLfsDestinationPath = PackageDestinationDirectory ;
71
- gitConfigDestinationPath = PackageDestinationDirectory ;
70
+
72
71
if ( DefaultEnvironment . OnWindows )
73
72
{
74
73
GitLfsDestinationPath = GitLfsDestinationPath . Combine ( "mingw32" ) ;
75
- gitConfigDestinationPath = gitConfigDestinationPath . Combine ( "mingw32" ) ;
76
74
}
77
- GitLfsDestinationPath = GitLfsDestinationPath . Combine ( "libexec" , "git-core" , GitLfsExecutable ) ;
78
- gitConfigDestinationPath = gitConfigDestinationPath . Combine ( "etc" , "gitconfig" ) ;
79
75
76
+ GitLfsDestinationPath = GitLfsDestinationPath . Combine ( "libexec" , "git-core" , GitLfsExecutable ) ;
80
77
}
81
78
82
79
public bool IsExtracted ( )
@@ -138,12 +135,6 @@ public async Task<bool> SetupIfNeeded(IProgress<float> zipFileProgress = null, I
138
135
139
136
ret &= await SetupGitLfsIfNeeded ( tempPath , zipFileProgress , estimatedDurationProgress ) ;
140
137
141
- var archiveFilePath = AssemblyResources . ToFile ( ResourceType . Platform , "gitconfig" , tempPath ) ;
142
- if ( archiveFilePath . FileExists ( ) )
143
- {
144
- archiveFilePath . Copy ( gitConfigDestinationPath ) ;
145
- }
146
-
147
138
tempPath . Delete ( ) ;
148
139
return ret ;
149
140
}
0 commit comments