diff options
| author | Ben Straub <bstraub@github.com> | 2012-05-11 11:58:02 -0700 |
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-05-11 11:58:02 -0700 |
| commit | 72b86bae50f3dc0ec1a9df0b62c70ab9bdb37c77 (patch) | |
| tree | 29295940ad3e32664ee8ce8c8aea749e66d7ad99 /tests-clar/refs/revparse.c | |
| parent | 92ad5a5cda94c04b24d84c20ede235d69bedb988 (diff) | |
| download | libgit2-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.c | 2 |
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) |
