mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-23 09:10:46 +00:00
Don't strcmp a git_buf, strcmp its char *
This commit is contained in:
parent
cd4aa602c9
commit
96f12e709b
@ -233,7 +233,7 @@ void test_network_remote_remotes__transform(void)
|
|||||||
git_buf ref = GIT_BUF_INIT;
|
git_buf ref = GIT_BUF_INIT;
|
||||||
|
|
||||||
cl_git_pass(git_refspec_transform(&ref, _refspec, "refs/heads/master"));
|
cl_git_pass(git_refspec_transform(&ref, _refspec, "refs/heads/master"));
|
||||||
cl_assert_equal_s(ref, "refs/remotes/test/master");
|
cl_assert_equal_s(ref.ptr, "refs/remotes/test/master");
|
||||||
git_buf_free(&ref);
|
git_buf_free(&ref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user