From 7c4bd68a25aa2f5af2110845f884863d0043f8dc Mon Sep 17 00:00:00 2001 From: ReveredRedHood Date: Sat, 31 Aug 2024 15:34:55 -0600 Subject: [PATCH] fix: prevent gpg from disrupting initial commit in addon change tracking repo --- .../src/features/addons/domain/AddonsRepositoryTest.cs | 6 +++++- GodotEnv/src/features/addons/domain/AddonsRepository.cs | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/GodotEnv.Tests/src/features/addons/domain/AddonsRepositoryTest.cs b/GodotEnv.Tests/src/features/addons/domain/AddonsRepositoryTest.cs index a63cfd0..5a82351 100644 --- a/GodotEnv.Tests/src/features/addons/domain/AddonsRepositoryTest.cs +++ b/GodotEnv.Tests/src/features/addons/domain/AddonsRepositoryTest.cs @@ -370,7 +370,11 @@ public async Task InstallAddonFromCacheCopiesCachedAddonToAddonsPath() { cli.Runs(addonInstallPath, new ProcessResult(0), "git", "add", "-A"); cli.Runs( addonInstallPath, new ProcessResult(0), - "git", "commit", "-m", "Initial commit" + "git", "config", "--local", "commit.gpgsign", "false" + ); + cli.Runs( + addonInstallPath, new ProcessResult(0), + "git", "commit", "-m", "\"Initial commit\"" ); await repo.InstallAddonFromCache(addon, addon.Name); diff --git a/GodotEnv/src/features/addons/domain/AddonsRepository.cs b/GodotEnv/src/features/addons/domain/AddonsRepository.cs index a1c279e..f298e90 100644 --- a/GodotEnv/src/features/addons/domain/AddonsRepository.cs +++ b/GodotEnv/src/features/addons/domain/AddonsRepository.cs @@ -225,7 +225,10 @@ await addonShell.Run( ); await addonShell.Run("git", "add", "-A"); await addonShell.Run( - "git", "commit", "-m", "Initial commit" + "git", "config", "--local", "commit.gpgsign", "false" + ); + await addonShell.Run( + "git", "commit", "-m", "\"Initial commit\"" ); }