From ea9c4a53dd4a96814a8f31663b6881b6f357d56c Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 4 Jun 2016 08:46:49 -0700 Subject: [PATCH] git fetcher: Set required property for encryption filter --- Sparkles/Git/GitFetcher.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sparkles/Git/GitFetcher.cs b/Sparkles/Git/GitFetcher.cs index 0768930a..d63598ff 100644 --- a/Sparkles/Git/GitFetcher.cs +++ b/Sparkles/Git/GitFetcher.cs @@ -273,6 +273,8 @@ namespace Sparkles.Git { public override void EnableFetchedRepoCrypto (string password) { + var git_config_required = new GitCommand (TargetFolder, "config filter.encryption.required true"); + var git_config_smudge = new GitCommand (TargetFolder, "config filter.encryption.smudge \"openssl enc -d -aes-256-cbc -base64" + " " + "-S " + password.SHA256 (password_salt).Substring (0, 16) + " " + @@ -283,6 +285,7 @@ namespace Sparkles.Git { "-S " + password.SHA256 (password_salt).Substring (0, 16) + " " + "-pass file:.git/info/encryption_password\""); + git_config_required.StartAndWaitForExit (); git_config_smudge.StartAndWaitForExit (); git_config_clean.StartAndWaitForExit ();