fix repos with '.git' in their name not syncing sometimes
This commit is contained in:
parent
cdfda1256f
commit
821d93d672
|
@ -221,7 +221,7 @@ namespace SparkleLib {
|
|||
|
||||
if (args != null) {
|
||||
foreach (string exclude_path in ExcludePaths) {
|
||||
if (args.FullPath.Contains (exclude_path))
|
||||
if (args.FullPath.Contains (Path.DirectorySeparatorChar + exclude_path))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,11 +63,8 @@ namespace SparkleShare {
|
|||
|
||||
// FIXME: There are cases where the wrong repo is triggered, so
|
||||
// we trigger all of them for now. Causes only slightly more overhead
|
||||
foreach (SparkleRepoBase repo in Repositories) {
|
||||
new Thread (() => {
|
||||
repo.OnFileActivity (fse_args);
|
||||
}).Start ();
|
||||
}
|
||||
foreach (SparkleRepoBase repo in Repositories)
|
||||
new Thread (() => { repo.OnFileActivity (fse_args); }).Start ();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue