diff options
author | Linquize <linquize@yahoo.com.hk> | 2015-07-29 00:08:37 +0800 |
---|---|---|
committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2015-08-01 19:35:59 +0200 |
commit | 63e5b5512226cfbea24bcf5d74b68cbc89197447 (patch) | |
tree | b96dfb26a65391c181cacc3ec6cb9b0ed5f209c6 | |
parent | c400bac4db12d8be95f1876d16231743b5696244 (diff) | |
download | libgit2-63e5b5512226cfbea24bcf5d74b68cbc89197447.tar.gz |
index: add test for adding an old-style submodule to index
-rw-r--r-- | tests/index/bypath.c | 7 |
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)); +} |