Skip to content

Commit 526710b

Browse files
authored
Merge pull request #1823 from microsoft/milestones/m196
[Release] Milestone M196
2 parents 0dbef36 + c1c54e5 commit 526710b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

GVFS/GVFS.Platform.Windows/ProjFSFilter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ public bool IsSupported(string normalizedEnlistmentRootPath, out string warning,
378378

379379
string pathRoot = Path.GetPathRoot(normalizedEnlistmentRootPath);
380380
DriveInfo rootDriveInfo = DriveInfo.GetDrives().FirstOrDefault(x => x.Name == pathRoot);
381-
string requiredFormat = "NTFS";
381+
string[] requiredFormats = new[] { "NTFS", "ReFS" };
382382
if (rootDriveInfo == null)
383383
{
384-
warning = $"Unable to ensure that '{normalizedEnlistmentRootPath}' is an {requiredFormat} volume.";
384+
warning = $"Unable to ensure that '{normalizedEnlistmentRootPath}' is an {string.Join(" or ", requiredFormats)} volume.";
385385
}
386-
else if (!string.Equals(rootDriveInfo.DriveFormat, requiredFormat, StringComparison.OrdinalIgnoreCase))
386+
else if (!requiredFormats.Any(requiredFormat => string.Equals(rootDriveInfo.DriveFormat, requiredFormat, StringComparison.OrdinalIgnoreCase)))
387387
{
388-
error = $"Error: Currently only {requiredFormat} volumes are supported. Ensure repo is located into an {requiredFormat} volume.";
388+
error = $"Only {string.Join(" and ", requiredFormats)} volumes are supported. Ensure your repo is located in an {string.Join(" or ", requiredFormats)} volume.";
389389
return false;
390390
}
391391

0 commit comments

Comments
 (0)