Skip to content

Commit 57d1b14

Browse files
committed
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.
1 parent 78cad1d commit 57d1b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Repository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ public static IEnumerable<Reference> ListRemoteReferences(string url, Credential
604604
/// <para>The lookup start from <paramref name="startingPath"/> and walk upward parent directories if nothing has been found.</para>
605605
/// </summary>
606606
/// <param name="startingPath">The base path where the lookup starts.</param>
607-
/// <returns>The path to the git repository.</returns>
607+
/// <returns>The path to the git repository, or null if no repository was found.</returns>
608608
public static string Discover(string startingPath)
609609
{
610610
FilePath discoveredPath = Proxy.git_repository_discover(startingPath);

0 commit comments

Comments
 (0)