We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad35fe commit e1be204Copy full SHA for e1be204
src/NerdBank.GitVersioning.Tests/TestUtilities.cs
@@ -66,9 +66,18 @@ internal static ExpandedRepo ExtractRepoArchive(string repoArchiveName)
66
ExtractEmbeddedResource($"repos.{repoArchiveName}.7z", archiveFilePath);
67
try
68
{
69
- var extractor = new SevenZipExtractor(archiveFilePath);
70
- extractor.ExtractAll(expandedFolderPath);
71
- return new ExpandedRepo(expandedFolderPath);
+ for (int retryCount = 0; ; retryCount++)
+ {
+ try
72
73
+ var extractor = new SevenZipExtractor(archiveFilePath);
74
+ extractor.ExtractAll(expandedFolderPath);
75
+ return new ExpandedRepo(expandedFolderPath);
76
+ }
77
+ catch (System.ComponentModel.Win32Exception) when (retryCount < 2)
78
79
80
81
}
82
finally
83
0 commit comments