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");