diff options
author | Patrick Steinhardt <ps@pks.im> | 2020-06-29 12:22:27 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2020-07-12 15:25:10 +0200 |
commit | 9703d26fc4d080863ce58166fae77ce12dcd4840 (patch) | |
tree | 5a66c29ed390d0398e074d1693608652cdb48d82 | |
parent | 1f39593b141005b0c8035852d891fa01ead7bd78 (diff) | |
download | libgit2-9703d26fc4d080863ce58166fae77ce12dcd4840.tar.gz |
tests: reflog: remove unused signature
There's two tests that create a commit signature, but never make any use
of it. Let's remove these to avoid any confusion.
-rw-r--r-- | tests/refs/reflog/messages.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/refs/reflog/messages.c b/tests/refs/reflog/messages.c index 43f59a84b..53b8c6f3e 100644 --- a/tests/refs/reflog/messages.c +++ b/tests/refs/reflog/messages.c @@ -24,11 +24,8 @@ void test_refs_reflog_messages__cleanup(void) void test_refs_reflog_messages__setting_head_updates_reflog(void) { git_object *tag; - git_signature *sig; git_annotated_commit *annotated; - cl_git_pass(git_signature_now(&sig, "me", "foo@example.com")); - cl_git_pass(git_repository_set_head(g_repo, "refs/heads/haacked")); /* 4 */ cl_git_pass(git_repository_set_head(g_repo, "refs/heads/unborn")); cl_git_pass(git_revparse_single(&tag, g_repo, "tags/test")); @@ -68,7 +65,6 @@ void test_refs_reflog_messages__setting_head_updates_reflog(void) git_annotated_commit_free(annotated); git_object_free(tag); - git_signature_free(sig); } void test_refs_reflog_messages__setting_head_to_same_target_ignores_reflog(void) @@ -87,12 +83,9 @@ void test_refs_reflog_messages__setting_head_to_same_target_ignores_reflog(void) void test_refs_reflog_messages__detaching_writes_reflog(void) { - git_signature *sig; git_oid id; const char *msg; - cl_git_pass(git_signature_now(&sig, "me", "foo@example.com")); - msg = "checkout: moving from master to e90810b8df3e80c413d903f631643c716887138d"; git_oid_fromstr(&id, "e90810b8df3e80c413d903f631643c716887138d"); cl_git_pass(git_repository_set_head_detached(g_repo, &id)); @@ -107,8 +100,6 @@ void test_refs_reflog_messages__detaching_writes_reflog(void) "e90810b8df3e80c413d903f631643c716887138d", "258f0e2a959a364e40ed6603d5d44fbb24765b10", NULL, msg); - - git_signature_free(sig); } void test_refs_reflog_messages__orphan_branch_does_not_count(void) |