Commit 63e5b551 by Linquize Committed by Carlos Martín Nieto

index: add test for adding an old-style submodule to index

parent c400bac4
......@@ -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));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment