fix repos with '.git' in their name not syncing sometimes

This commit is contained in:
Hylke Bons 2012-11-04 18:37:38 +00:00
parent 126aba422f
commit 6e35c81422
2 changed files with 3 additions and 6 deletions

View file

@ -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;
}
}

View file

@ -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 ();
};
}