From 85a65da878bb7fd7f142f6e8321d490349222a33 Mon Sep 17 00:00:00 2001 From: Andre Spahlinger Date: Fri, 22 Oct 2021 23:22:53 +0200 Subject: [PATCH 1/2] Fix for issue #1958 --- Sparkles/Git/Git.Fetcher.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sparkles/Git/Git.Fetcher.cs b/Sparkles/Git/Git.Fetcher.cs index 81bcfd52..f54cc84d 100644 --- a/Sparkles/Git/Git.Fetcher.cs +++ b/Sparkles/Git/Git.Fetcher.cs @@ -176,6 +176,11 @@ namespace Sparkles.Git { File.WriteAllText (identifier_path, identifier); File.SetAttributes (identifier_path, FileAttributes.Hidden); + 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, From 347ce97ea78792d61bdcfafe775c5cf9a01f8b78 Mon Sep 17 00:00:00 2001 From: uenz Date: Mon, 1 Nov 2021 13:32:47 +0100 Subject: [PATCH 2/2] Update Git.Fetcher.cs Added comment --- Sparkles/Git/Git.Fetcher.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sparkles/Git/Git.Fetcher.cs b/Sparkles/Git/Git.Fetcher.cs index f54cc84d..052638f6 100644 --- a/Sparkles/Git/Git.Fetcher.cs +++ b/Sparkles/Git/Git.Fetcher.cs @@ -176,6 +176,8 @@ 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\"");