Thread (17 messages) 17 messages, 2 authors, 2018-10-10

Re: [PATCH v6 09/10] submodule: support reading .gitmodules when it's not in the working tree

From: Stefan Beller <hidden>
Date: 2018-10-08 22:19:15

+test_expect_success 'not writing gitmodules config file when it is not checked out' '
+        test_must_fail git -C super submodule--helper config submodule.submodule.url newurl
This only checks the exit code, do we also want to check for

    test_path_is_missing .gitmodules ?
+test_expect_success 'initialising submodule when the gitmodules config is not checked out' '
+       git -C super submodule init
+'
+
+test_expect_success 'showing submodule summary when the gitmodules config is not checked out' '
+       git -C super submodule summary
+'
Same for these, is the exit code enough, or do we want to look at
specific things?
+
+test_expect_success 'updating submodule when the gitmodules config is not checked out' '
+       (cd submodule &&
+               echo file2 >file2 &&
+               git add file2 &&
+               git commit -m "add file2 to submodule"
+       ) &&
+       git -C super submodule update
git status would want to be clean afterwards?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help