From 6811c2c816ed9a8ee258e63c73389b55cc3a80db Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Fri, 18 Nov 2022 07:42:37 -0600 Subject: [PATCH] refactor: Do not create the RepoDirectory on start up Let the GitRepositoryFactory do it. --- src/Recyclarr/Command/Setup/AppPathSetupTask.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Recyclarr/Command/Setup/AppPathSetupTask.cs b/src/Recyclarr/Command/Setup/AppPathSetupTask.cs index 8128fe1d..5436b550 100644 --- a/src/Recyclarr/Command/Setup/AppPathSetupTask.cs +++ b/src/Recyclarr/Command/Setup/AppPathSetupTask.cs @@ -19,7 +19,7 @@ public class AppPathSetupTask : IBaseCommandSetupTask _log.Debug("App Data Dir: {AppData}", _paths.AppDataDirectory); // Initialize other directories used throughout the application - _paths.RepoDirectory.Create(); + // Do not initialize the repo directory here; the GitRepositoryFactory handles that later. _paths.CacheDirectory.Create(); _paths.LogDirectory.Create(); _paths.ConfigsDirectory.Create();