diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-11-05 03:20:17 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-11-05 03:20:17 +0200 |
| commit | 1795f87952a68155a618523799f70473483c7265 (patch) | |
| tree | 239c2fef7674cc0407523be0a250b563361efc6b /tests/t0802-write.c | |
| parent | 1714826fa08ad8612b720c8fdea636a4fc49c480 (diff) | |
| download | libgit2-1795f87952a68155a618523799f70473483c7265.tar.gz | |
Improve error handling
All initialization functions now return error codes instead of pointers.
Error codes are now properly propagated on most functions. Several new
and more specific error codes have been added in common.h
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests/t0802-write.c')
| -rw-r--r-- | tests/t0802-write.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/t0802-write.c b/tests/t0802-write.c index 20c1eab0a..8dd8de5ea 100644 --- a/tests/t0802-write.c +++ b/tests/t0802-write.c @@ -14,13 +14,11 @@ BEGIN_TEST(tag_writeback_test) git_tag *tag; /* char hex_oid[41]; */ - repo = git_repository_open(REPOSITORY_FOLDER); - must_be_true(repo != NULL); + must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); git_oid_mkstr(&id, tag_id); - tag = git_tag_lookup(repo, &id); - must_be_true(tag != NULL); + must_pass(git_tag_lookup(&tag, repo, &id)); git_tag_set_name(tag, "This is a different tag LOL"); |
