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:
authorLinquize <linquize@yahoo.com.hk>2015-07-28 19:08:37 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-08-01 20:35:59 +0300
commit63e5b5512226cfbea24bcf5d74b68cbc89197447 (patch)
treeb96dfb26a65391c181cacc3ec6cb9b0ed5f209c6
parentc400bac4db12d8be95f1876d16231743b5696244 (diff)
index: add test for adding an old-style submodule to index
-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));
+}