@@ -262,16 +262,18 @@ void test_repo_head__setting_head_updates_reflog(void)
262262 cl_git_pass (git_repository_set_head_detached (repo , git_object_id (tag )));
263263 cl_git_pass (git_repository_set_head (repo , "refs/heads/haacked" ));
264264 cl_git_pass (git_repository_set_head (repo , "refs/tags/test" ));
265+ cl_git_pass (git_repository_set_head (repo , "refs/remotes/test/master" ));
265266
266- test_reflog (repo , 3 , NULL , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from master to haacked" );
267- test_reflog (repo , 2 , NULL , "tags/test^{commit}" , "foo@example.com" , "checkout: moving from unborn to e90810b8df3e80c413d903f631643c716887138d" );
268- test_reflog (repo , 1 , "tags/test^{commit}" , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from e90810b8df3e80c413d903f631643c716887138d to haacked" );
269- test_reflog (repo , 0 , "refs/heads/haacked" , "tags/test^{commit}" , "foo@example.com" , "checkout: moving from haacked to test" );
267+ test_reflog (repo , 4 , NULL , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from master to haacked" );
268+ test_reflog (repo , 3 , NULL , "tags/test^{commit}" , "foo@example.com" , "checkout: moving from unborn to e90810b8df3e80c413d903f631643c716887138d" );
269+ test_reflog (repo , 2 , "tags/test^{commit}" , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from e90810b8df3e80c413d903f631643c716887138d to haacked" );
270+ test_reflog (repo , 1 , "refs/heads/haacked" , "tags/test^{commit}" , "foo@example.com" , "checkout: moving from haacked to test" );
271+ test_reflog (repo , 0 , "tags/test^{commit}" , "refs/remotes/test/master" , "foo@example.com" , "checkout: moving from e90810b8df3e80c413d903f631643c716887138d to test/master" );
270272
271273 cl_git_pass (git_annotated_commit_from_revspec (& annotated , repo , "haacked~0" ));
272274 cl_git_pass (git_repository_set_head_detached_from_annotated (repo , annotated ));
273275
274- test_reflog (repo , 0 , NULL , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from e90810b8df3e80c413d903f631643c716887138d to haacked~0" );
276+ test_reflog (repo , 0 , NULL , "refs/heads/haacked" , "foo@example.com" , "checkout: moving from be3563ae3f795b2b4353bcce3a527ad0a4f7f644 to haacked~0" );
275277
276278 git_annotated_commit_free (annotated );
277279 git_object_free (tag );
0 commit comments