@@ -168,8 +168,8 @@ private bool InstallGit(NPath targetPath)
168
168
{
169
169
Logger . Trace ( "InstallGit" ) ;
170
170
171
- var tempPath = NPath . CreateTempDirectory ( "git_zip_path" ) ;
172
- var gitArchivePath = AssemblyResources . ToFile ( ResourceType . Platform , "git.zip" , tempPath , environment ) ;
171
+ var tempZipPath = NPath . CreateTempDirectory ( "git_zip_path" ) ;
172
+ var gitArchivePath = AssemblyResources . ToFile ( ResourceType . Platform , "git.zip" , tempZipPath , environment ) ;
173
173
174
174
if ( ! environment . FileSystem . FileExists ( gitArchivePath ) )
175
175
{
@@ -195,7 +195,7 @@ private bool InstallGit(NPath targetPath)
195
195
return false ;
196
196
}
197
197
198
- tempPath . DeleteIfExists ( ) ;
198
+ tempZipPath . DeleteIfExists ( ) ;
199
199
200
200
return true ;
201
201
}
@@ -204,8 +204,8 @@ private bool InstallGitLfs(NPath targetPath)
204
204
{
205
205
Logger . Trace ( "InstallGitLfs" ) ;
206
206
207
- var tempPath = NPath . CreateTempDirectory ( "git_lfs_zip_path" ) ;
208
- var gitLfsArchivePath = AssemblyResources . ToFile ( ResourceType . Platform , "git-lfs.zip" , tempPath , environment ) ;
207
+ var tempZipPath = NPath . CreateTempDirectory ( "git_lfs_zip_path" ) ;
208
+ var gitLfsArchivePath = AssemblyResources . ToFile ( ResourceType . Platform , "git-lfs.zip" , tempZipPath , environment ) ;
209
209
210
210
if ( ! environment . FileSystem . FileExists ( gitLfsArchivePath ) )
211
211
{
@@ -215,22 +215,22 @@ private bool InstallGitLfs(NPath targetPath)
215
215
216
216
Token . ThrowIfCancellationRequested ( ) ;
217
217
218
- var tempDirectory = NPath . CreateTempDirectory ( "git_lfs_extract_path" ) ;
218
+ var tempZipExtractPath = NPath . CreateTempDirectory ( "git_lfs_extract_path" ) ;
219
219
220
220
try
221
221
{
222
- Logger . Trace ( "Extracting gitLfsArchivePath:\" {0}\" tempDirectory:\" {1}\" " , gitLfsArchivePath , tempDirectory ) ;
223
- ZipHelper . ExtractZipFile ( gitLfsArchivePath , tempDirectory , Token ) ;
222
+ Logger . Trace ( "Extracting gitLfsArchivePath:\" {0}\" tempDirectory:\" {1}\" " , gitLfsArchivePath , tempZipExtractPath ) ;
223
+ ZipHelper . ExtractZipFile ( gitLfsArchivePath , tempZipExtractPath , Token ) ;
224
224
}
225
225
catch ( Exception ex )
226
226
{
227
- Logger . Warning ( ex , $ "Error Extracting gitLfsArchivePath:\" { gitLfsArchivePath } \" tempDirectory:\" { tempDirectory } \" ") ;
227
+ Logger . Warning ( ex , $ "Error Extracting gitLfsArchivePath:\" { gitLfsArchivePath } \" tempDirectory:\" { tempZipExtractPath } \" ") ;
228
228
return false ;
229
229
}
230
230
231
231
Token . ThrowIfCancellationRequested ( ) ;
232
232
233
- var tempDirectoryGitLfsExec = tempDirectory . Combine ( installDetails . GitLfsExec ) ;
233
+ var tempDirectoryGitLfsExec = tempZipExtractPath . Combine ( installDetails . GitLfsExec ) ;
234
234
235
235
var targetLfsExecPath = installDetails . GetGitLfsExecPath ( targetPath ) ;
236
236
try
@@ -244,8 +244,9 @@ private bool InstallGitLfs(NPath targetPath)
244
244
return false ;
245
245
}
246
246
247
- Logger . Trace ( "Deleting tempDirectory:\" {0}\" " , tempDirectory ) ;
248
- tempDirectory . DeleteIfExists ( ) ;
247
+ tempZipPath . DeleteIfExists ( ) ;
248
+ tempZipExtractPath . DeleteIfExists ( ) ;
249
+
249
250
return true ;
250
251
}
251
252
}
0 commit comments