From 74c608f8273662d1663a4d69cf965a4d0fa0bba0 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Tue, 11 Nov 2025 10:59:49 +0800 Subject: [PATCH 1/2] fix Commands.Fetch not respect FetchOptions.Depth --- LibGit2Sharp/Commands/Fetch.cs | 2 ++ LibGit2Sharp/FetchOptions.cs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/LibGit2Sharp/Commands/Fetch.cs b/LibGit2Sharp/Commands/Fetch.cs index e531aac51..f1a15b25e 100644 --- a/LibGit2Sharp/Commands/Fetch.cs +++ b/LibGit2Sharp/Commands/Fetch.cs @@ -54,6 +54,8 @@ public static void Fetch(Repository repository, string remote, IEnumerable /// The custom headers string array public string[] CustomHeaders { get; set; } + + /// + /// DGP Studio Feature: Whether to update FETCH_HEAD after fetching. + /// + public bool UpdateFetchHead { get; set; } = true; } } From 7a332fa9bcc226be34aa5db5a5ea8cf644309bb3 Mon Sep 17 00:00:00 2001 From: DismissedLight <1686188646@qq.com> Date: Tue, 11 Nov 2025 13:53:09 +0800 Subject: [PATCH 2/2] Update LibGit2Sharp.csproj --- LibGit2Sharp/LibGit2Sharp.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 1c4abef7b..779f42a8b 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -15,6 +15,7 @@ embedded true ..\libgit2sharp.snk + Snap.LibGit2Sharp square-logo.png App_Readme/README.md App_Readme/LICENSE.md