mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
Fix crash due to missing name in file system changed event when running git command background without SourceGit
This commit is contained in:
parent
863e83d402
commit
a82943d649
1 changed files with 2 additions and 0 deletions
|
@ -361,6 +361,8 @@ namespace SourceGit.Git {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnFSChanged(object sender, FileSystemEventArgs e) {
|
private void OnFSChanged(object sender, FileSystemEventArgs e) {
|
||||||
|
if (string.IsNullOrEmpty(e.Name)) return;
|
||||||
|
|
||||||
if (e.Name.StartsWith(".git", StringComparison.Ordinal)) {
|
if (e.Name.StartsWith(".git", StringComparison.Ordinal)) {
|
||||||
if (e.Name.Equals(".git") || e.Name.StartsWith(".git\\index")) return;
|
if (e.Name.Equals(".git") || e.Name.StartsWith(".git\\index")) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue