Commit f5a86fefa9cc005db984defdbac82ec1dde27a40

schu 2011-05-29T17:44:14

gitfo_isdir: fix error message Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/fileops.c b/src/fileops.c
index 2926734..7393934 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -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;
 }