summaryrefslogtreecommitdiff
path: root/tests-clar/refs/revparse.c
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-05-11 11:58:02 -0700
committerBen Straub <bstraub@github.com>2012-05-11 11:58:02 -0700
commit72b86bae50f3dc0ec1a9df0b62c70ab9bdb37c77 (patch)
tree29295940ad3e32664ee8ce8c8aea749e66d7ad99 /tests-clar/refs/revparse.c
parent92ad5a5cda94c04b24d84c20ede235d69bedb988 (diff)
downloadlibgit2-72b86bae50f3dc0ec1a9df0b62c70ab9bdb37c77.tar.gz
Rev-parse: better error handling for chaining.
Fixed an error where "nonexistant^N" or similar would fall into an assert. This now properly returns an error.
Diffstat (limited to 'tests-clar/refs/revparse.c')
-rw-r--r--tests-clar/refs/revparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests-clar/refs/revparse.c b/tests-clar/refs/revparse.c
index b8318923d..31a832aca 100644
--- a/tests-clar/refs/revparse.c
+++ b/tests-clar/refs/revparse.c
@@ -36,6 +36,8 @@ void test_refs_revparse__cleanup(void)
void test_refs_revparse__nonexistant_object(void)
{
cl_git_fail(git_revparse_single(&g_obj, g_repo, "this doesn't exist"));
+ cl_git_fail(git_revparse_single(&g_obj, g_repo, "this doesn't exist^1"));
+ cl_git_fail(git_revparse_single(&g_obj, g_repo, "this doesn't exist~2"));
}
void test_refs_revparse__shas(void)