From 57d1b141114eda1374a9871dc180e7cd2cb8e589 Mon Sep 17 00:00:00 2001 From: LokiMidgard Date: Fri, 23 Oct 2015 16:32:58 +0200 Subject: [PATCH] Clearification of return value. I wasn't sure what happens if no repo is found. (does it return null or throws an exception). So I thought it could be stated clearer for people like me. --- LibGit2Sharp/Repository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index e37c9100c..b2df94152 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -604,7 +604,7 @@ public static IEnumerable ListRemoteReferences(string url, Credential /// The lookup start from and walk upward parent directories if nothing has been found. /// /// The base path where the lookup starts. - /// The path to the git repository. + /// The path to the git repository, or null if no repository was found. public static string Discover(string startingPath) { FilePath discoveredPath = Proxy.git_repository_discover(startingPath);