@@ -24,11 +24,8 @@ void test_refs_reflog_messages__cleanup(void)
2424void test_refs_reflog_messages__setting_head_updates_reflog (void )
2525{
2626 git_object * tag ;
27- git_signature * sig ;
2827 git_annotated_commit * annotated ;
2928
30- cl_git_pass (git_signature_now (& sig , "me" , "foo@example.com" ));
31-
3229 cl_git_pass (git_repository_set_head (g_repo , "refs/heads/haacked" )); /* 4 */
3330 cl_git_pass (git_repository_set_head (g_repo , "refs/heads/unborn" ));
3431 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)
6865
6966 git_annotated_commit_free (annotated );
7067 git_object_free (tag );
71- git_signature_free (sig );
7268}
7369
7470void 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)
8783
8884void test_refs_reflog_messages__detaching_writes_reflog (void )
8985{
90- git_signature * sig ;
9186 git_oid id ;
9287 const char * msg ;
9388
94- cl_git_pass (git_signature_now (& sig , "me" , "foo@example.com" ));
95-
9689 msg = "checkout: moving from master to e90810b8df3e80c413d903f631643c716887138d" ;
9790 git_oid_fromstr (& id , "e90810b8df3e80c413d903f631643c716887138d" );
9891 cl_git_pass (git_repository_set_head_detached (g_repo , & id ));
@@ -107,8 +100,6 @@ void test_refs_reflog_messages__detaching_writes_reflog(void)
107100 "e90810b8df3e80c413d903f631643c716887138d" ,
108101 "258f0e2a959a364e40ed6603d5d44fbb24765b10" ,
109102 NULL , msg );
110-
111- git_signature_free (sig );
112103}
113104
114105void test_refs_reflog_messages__orphan_branch_does_not_count (void )
0 commit comments