From 145e8fe01d10b1ccc91e74392146ab41e00909aa Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 17 Apr 2012 19:00:05 +0200 Subject: [PATCH] repo git: Don't follow symlinks when preparing the tree. Fixes #701 --- SparkleLib/Git/SparkleRepoGit.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 73aebe82..9458d7e9 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -722,6 +722,9 @@ namespace SparkleLib.Git { { try { foreach (string child_path in Directory.GetDirectories (path)) { + if (SparkleHelpers.IsSymlink (child_path)) + continue; + if (child_path.EndsWith (".git")) { if (child_path.Equals (Path.Combine (LocalPath, ".git"))) continue;