Merge pull request #1980 from uenz/fix/CryptoRepo

Fix for issue #1958
This commit is contained in:
Hylke Bons 2021-11-01 22:20:23 +01:00 committed by GitHub
commit b65e0fed53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,