From f5a86fefa9cc005db984defdbac82ec1dde27a40 Mon Sep 17 00:00:00 2001 From: schu Date: Sun, 29 May 2011 17:44:14 +0200 Subject: [PATCH 1/2] gitfo_isdir: fix error message Signed-off-by: schu --- src/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileops.c b/src/fileops.c index 292673482..73939349d 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; } From 286349c6ecc758da226ce2f4da6522b73eb78930 Mon Sep 17 00:00:00 2001 From: schu Date: Sun, 29 May 2011 20:15:27 +0200 Subject: [PATCH 2/2] Fix tiny typo Signed-off-by: nulltoken Signed-off-by: schu --- tests/t10-refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/t10-refs.c b/tests/t10-refs.c index ee006a8ce..4b34146ed 100644 --- a/tests/t10-refs.c +++ b/tests/t10-refs.c @@ -644,7 +644,7 @@ BEGIN_TEST(rename5, "can force-rename a reference with the name of an existing r /* An existing reference... */ must_pass(git_reference_lookup(&looked_up_ref, repo, packed_head_name)); - /* Can not be renamed to the name of another existing reference. */ + /* Can be force-renamed to the name of another existing reference. */ must_pass(git_reference_rename_f(looked_up_ref, packed_test_head_name)); /* Check we actually renamed it */