diff --git a/Sparkles/Git/Git.Fetcher.cs b/Sparkles/Git/Git.Fetcher.cs index 81bcfd52..052638f6 100644 --- a/Sparkles/Git/Git.Fetcher.cs +++ b/Sparkles/Git/Git.Fetcher.cs @@ -176,6 +176,13 @@ namespace Sparkles.Git { File.WriteAllText (identifier_path, identifier); File.SetAttributes (identifier_path, FileAttributes.Hidden); + // The repo is freshly cloned and no config user.name is set yet, so temporary use SparkleShare + // to avoid error 'TELL ME WHO YOU ARE', later on this will be handled in Commit of Git.Repository + var git_config = new GitCommand(TargetFolder, "config user.name \"SparkleShare\""); + git_config.StartAndWaitForExit(); + git_config = new GitCommand(TargetFolder, "config user.email \"info@sparkleshare.org\""); + git_config.StartAndWaitForExit(); + // We can't do the "commit --all" shortcut because it doesn't add untracked files var git_add = new GitCommand (TargetFolder, "add .sparkleshare"); var git_commit = new GitCommand (TargetFolder,