gitfo_isdir: fix error message

Signed-off-by: schu <schu-github@schulog.org>
This commit is contained in:
schu 2011-05-29 17:44:14 +02:00
parent 4191d52924
commit f5a86fefa9

View File

@ -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;
}