mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-10 19:19:18 +00:00
Avoid crash when skipping remote test
This commit is contained in:
parent
fe45922d77
commit
3094102f69
@ -562,8 +562,10 @@ void test_online_push__multi(void)
|
||||
|
||||
cl_git_pass(git_reflog_read(&log, _repo, "refs/remotes/test/b1"));
|
||||
entry = git_reflog_entry_byindex(log, 0);
|
||||
cl_assert_equal_s("test push", git_reflog_entry_message(entry));
|
||||
cl_assert_equal_s("foo@example.com", git_reflog_entry_committer(entry)->email);
|
||||
if (entry) {
|
||||
cl_assert_equal_s("test push", git_reflog_entry_message(entry));
|
||||
cl_assert_equal_s("foo@example.com", git_reflog_entry_committer(entry)->email);
|
||||
}
|
||||
|
||||
git_reflog_free(log);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user