From 868056ca86936069d2b50089f0a98c147f2407c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Wed, 13 May 2020 12:41:01 +0200 Subject: [PATCH] Make all Commands methods use IRepository for consistency --- LibGit2Sharp/Commands/Fetch.cs | 2 +- LibGit2Sharp/Commands/Pull.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LibGit2Sharp/Commands/Fetch.cs b/LibGit2Sharp/Commands/Fetch.cs index d61fca5a5..c5015d0cc 100644 --- a/LibGit2Sharp/Commands/Fetch.cs +++ b/LibGit2Sharp/Commands/Fetch.cs @@ -32,7 +32,7 @@ private static RemoteHandle RemoteFromNameOrUrl(RepositoryHandle repoHandle, str /// Fetch options. /// Log message for any ref updates. /// List of refspecs to apply as active. - public static void Fetch(Repository repository, string remote, IEnumerable refspecs, FetchOptions options, string logMessage) + public static void Fetch(IRepository repository, string remote, IEnumerable refspecs, FetchOptions options, string logMessage) { Ensure.ArgumentNotNull(remote, "remote"); diff --git a/LibGit2Sharp/Commands/Pull.cs b/LibGit2Sharp/Commands/Pull.cs index bee1bbbda..4e452a627 100644 --- a/LibGit2Sharp/Commands/Pull.cs +++ b/LibGit2Sharp/Commands/Pull.cs @@ -15,7 +15,7 @@ public static partial class Commands /// The repository. /// The signature to use for the merge. /// The options for fetch and merging. - public static MergeResult Pull(Repository repository, Signature merger, PullOptions options) + public static MergeResult Pull(IRepository repository, Signature merger, PullOptions options) { Ensure.ArgumentNotNull(repository, "repository"); Ensure.ArgumentNotNull(merger, "merger");