Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit d97ea07

Browse files
committed
Fix comparison
1 parent bd11b66 commit d97ea07

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/GitHub.Exports/Helpers/SimpleRepositoryModelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static bool HasContent(this ISimpleRepositoryModel repository)
1919
var dir = new DirectoryInfo(repository.LocalPath);
2020
return dir.EnumerateFileSystemInfos("*", SearchOption.TopDirectoryOnly)
2121
.Any(x => ((x.Attributes.HasFlag(FileAttributes.Directory) || x.Attributes.HasFlag(FileAttributes.Normal)) &&
22-
!x.Name.StartsWith(".", StringComparison.Ordinal) && !x.Name.StartsWith("readme", StringComparison.Ordinal)));
22+
!x.Name.StartsWith(".", StringComparison.Ordinal) && !x.Name.StartsWith("readme", StringComparison.OrdinalIgnoreCase)));
2323
}
2424
}
2525
}

src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ void HandleCreatedRepo(ISimpleRepositoryModel newrepo)
232232

233233
void HandleClonedRepo(ISimpleRepositoryModel newrepo)
234234
{
235-
236235
var msg = string.Format(CultureInfo.CurrentUICulture, Constants.Notification_RepoCloned, newrepo.Name, newrepo.CloneUrl);
237236
if (newrepo.HasCommits() && newrepo.HasContent())
238237
msg += " " + string.Format(CultureInfo.CurrentUICulture, Constants.Notification_OpenProject, newrepo.LocalPath);

0 commit comments

Comments
 (0)