Skip to content

Commit 19065e5

Browse files
committed
repo: change error message
"Could not find repository from ..." doesn't make sense. "Could not find repository _at_ ..." does not indicate that we walked down the path hierarchy, but at least it's more correct.
1 parent dc7bca5 commit 19065e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/repository.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ static int find_repo(
757757
/* If we didn't find the repository, and we don't have any other error
758758
* to report, report that. */
759759
if (!git_str_len(gitdir_path)) {
760-
git_error_set(GIT_ERROR_REPOSITORY, "could not find repository from '%s'", start_path);
760+
git_error_set(GIT_ERROR_REPOSITORY, "could not find repository at '%s'", start_path);
761761
error = GIT_ENOTFOUND;
762762
goto out;
763763
}

0 commit comments

Comments
 (0)