Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/index/bypath.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/index/bypath.c b/tests/index/bypath.c
index ddb766a22..b587a9ce8 100644
--- a/tests/index/bypath.c
+++ b/tests/index/bypath.c
@@ -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));
+}