mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
index: add test for adding an old-style submodule to index
This commit is contained in:
parent
c400bac4db
commit
63e5b55122
@ -33,3 +33,10 @@ void test_index_bypath__add_submodule(void)
|
||||
cl_git_pass(git_submodule_status(&status, g_repo, sm_name, 0));
|
||||
cl_assert_equal_i(0, status & GIT_SUBMODULE_STATUS_WD_MODIFIED);
|
||||
}
|
||||
|
||||
void test_index_bypath__add_submodule_old_style(void)
|
||||
{
|
||||
const char *sm_name = "not-submodule";
|
||||
|
||||
cl_git_pass(git_index_add_bypath(g_idx, sm_name));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user