From 7733b5e569ece1de720aadf947c3ae29c361daca Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Mon, 26 Jun 2023 09:53:05 -0500 Subject: [PATCH] fix: Update default clone URL for trash guides repo New URL: https://github.com/TRaSH-Guides/Guides.git --- CHANGELOG.md | 5 +++++ .../Repo/VersionControl/GitRepositoryFactory.cs | 3 ++- src/Recyclarr.TrashLib/Settings/SettingsValues.cs | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a560b76..07a24f62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Migration step added to delete old `repo` directory. Run `recyclarr migrate` to use. +### Fixed + +- Update default clone URL for trash guides repo to new URL: + `https://github.com/TRaSH-Guides/Guides.git`. + ## [5.0.3] - 2023-06-25 ### Fixed diff --git a/src/Recyclarr.TrashLib/Repo/VersionControl/GitRepositoryFactory.cs b/src/Recyclarr.TrashLib/Repo/VersionControl/GitRepositoryFactory.cs index 5d065d35..5dbb1ba5 100644 --- a/src/Recyclarr.TrashLib/Repo/VersionControl/GitRepositoryFactory.cs +++ b/src/Recyclarr.TrashLib/Repo/VersionControl/GitRepositoryFactory.cs @@ -29,8 +29,9 @@ public class GitRepositoryFactory : IGitRepositoryFactory await repo.Status(); } - _log.Debug("Remote 'origin' set to {Url}", repoUrl); await repo.SetRemote("origin", repoUrl); + _log.Debug("Remote 'origin' set to {Url}", repoUrl); + return repo; } } diff --git a/src/Recyclarr.TrashLib/Settings/SettingsValues.cs b/src/Recyclarr.TrashLib/Settings/SettingsValues.cs index cf31451f..dfc4ade3 100644 --- a/src/Recyclarr.TrashLib/Settings/SettingsValues.cs +++ b/src/Recyclarr.TrashLib/Settings/SettingsValues.cs @@ -4,7 +4,7 @@ namespace Recyclarr.TrashLib.Settings; public record TrashRepository : IRepositorySettings { - public Uri CloneUrl { get; [UsedImplicitly] init; } = new("https://github.com/TRaSH-/Guides.git"); + public Uri CloneUrl { get; [UsedImplicitly] init; } = new("https://github.com/TRaSH-Guides/Guides.git"); public string Branch { get; [UsedImplicitly] init; } = "master"; public string? Sha1 { get; [UsedImplicitly] init; } }