run-command: use the async-signal-safe execv instead of execvp
[gitweb.git] / t / t7400-submodule-basic.sh
index 3af1c00ff196db35da63cfa19772aecd0a5e49aa..cf77a3a35747e40be6a8882d5bcdda498f4c4605 100755 (executable)
@@ -1256,4 +1256,15 @@ test_expect_success 'clone and subsequent updates correctly auto-initialize subm
        test_cmp expect2 actual
 '
 
+test_expect_success 'init properly sets the config' '
+       test_when_finished "rm -rf multisuper_clone" &&
+       git clone --recurse-submodules="." \
+                 --recurse-submodules=":(exclude)sub0" \
+                 multisuper multisuper_clone &&
+
+       git -C multisuper_clone submodule init -- sub0 sub1 &&
+       git -C multisuper_clone config --get submodule.sub0.active &&
+       test_must_fail git -C multisuper_clone config --get submodule.sub1.active
+'
+
 test_done