mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-05 16:51:42 +00:00
repository: add the invalid repository path to the error message
This commit is contained in:
parent
86360ffdf7
commit
0b44c06599
@ -169,7 +169,7 @@ int git_repository_open(git_repository **repo_out, const char *path)
|
|||||||
|
|
||||||
if (quickcheck_repository_dir(&path_buf) < GIT_SUCCESS) {
|
if (quickcheck_repository_dir(&path_buf) < GIT_SUCCESS) {
|
||||||
error = git__throw(GIT_ENOTAREPO,
|
error = git__throw(GIT_ENOTAREPO,
|
||||||
"The given path is not a valid Git repository");
|
"The given path (%s) is not a valid Git repository", git_buf_cstr(&path_buf));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user