We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb6c84e commit 6c82177Copy full SHA for 6c82177
LibGit2Sharp.Tests/RepositoryFixture.cs
@@ -167,6 +167,10 @@ private static void CheckGitConfigFile(string dir)
167
168
private static void AssertIsHidden(string repoPath)
169
{
170
+ //Work around .NET Core handling calls to File.GetAttributes with paths with a trailing slash differently
171
+ //without removing the trailing slash, the Hidden attribute is not included.
172
+ repoPath = repoPath.TrimEnd('/');
173
+
174
FileAttributes attribs = File.GetAttributes(repoPath);
175
176
Assert.Equal(FileAttributes.Hidden, (attribs & FileAttributes.Hidden));
0 commit comments