mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 09:41:04 +00:00
get last refspec in clone test
This commit is contained in:
parent
a952b9867d
commit
dfdf709e3f
@ -149,7 +149,7 @@ void test_clone_nonetwork__custom_fetch_spec(void)
|
||||
cl_git_pass(git_clone(&g_repo, cl_git_fixture_url("testrepo.git"), "./foo", &g_options));
|
||||
|
||||
cl_git_pass(git_remote_load(&g_remote, g_repo, "origin"));
|
||||
actual_fs = git_vector_get(&g_remote->refspecs, 0);
|
||||
actual_fs = git_vector_get(&g_remote->refspecs, g_remote->refspecs.length - 1);
|
||||
cl_assert_equal_s("refs/heads/master", git_refspec_src(actual_fs));
|
||||
cl_assert_equal_s("refs/heads/foo", git_refspec_dst(actual_fs));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user