mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 21:30:37 +08:00
Fix crash due to missing name in file system changed event when running git command background without SourceGit
This commit is contained in:
@@ -361,6 +361,8 @@ namespace SourceGit.Git {
|
||||
}
|
||||
|
||||
private void OnFSChanged(object sender, FileSystemEventArgs e) {
|
||||
if (string.IsNullOrEmpty(e.Name)) return;
|
||||
|
||||
if (e.Name.StartsWith(".git", StringComparison.Ordinal)) {
|
||||
if (e.Name.Equals(".git") || e.Name.StartsWith(".git\\index")) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user