repo git: add catch block to PrepareDirectories method
This commit is contained in:
parent
3b02eab8f6
commit
f6698520c6
|
@ -708,6 +708,7 @@ namespace SparkleLib.Git {
|
|||
// git submodules by renaming the .git/HEAD file
|
||||
private void PrepareDirectories (string path)
|
||||
{
|
||||
try {
|
||||
foreach (string child_path in Directory.GetDirectories (path)) {
|
||||
if (child_path.EndsWith (".git") &&
|
||||
!child_path.Equals (Path.Combine (LocalPath, ".git"))) {
|
||||
|
@ -735,6 +736,10 @@ namespace SparkleLib.Git {
|
|||
File.Create (Path.Combine (path, ".empty")).Close ();
|
||||
File.SetAttributes (Path.Combine (path, ".empty"), FileAttributes.Hidden);
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
SparkleHelpers.DebugInfo ("Git", "Failed preparing directory: " + e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue