mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 07:10:07 +00:00
gitfo_isdir: fix error message
Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
parent
4191d52924
commit
f5a86fefa9
@ -131,7 +131,7 @@ int gitfo_isdir(const char *path)
|
||||
return git__throw(GIT_ENOTFOUND, "%s does not exist", path);
|
||||
|
||||
if (!S_ISDIR(st.st_mode))
|
||||
return git__throw(GIT_ENOTFOUND, "%s is not a file", path);
|
||||
return git__throw(GIT_ENOTFOUND, "%s is a file", path);
|
||||
|
||||
return GIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user