We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb3afad + 83a17fa commit 5a5b8c1Copy full SHA for 5a5b8c1
t/t7406-submodule-update.sh
@@ -406,6 +406,14 @@ test_expect_success 'submodule update - command in .git/config' '
406
)
407
'
408
409
+test_expect_success 'submodule update - command in .gitmodules is ignored' '
410
+ test_when_finished "git -C super reset --hard HEAD^" &&
411
+ git -C super config -f .gitmodules submodule.submodule.update "!false" &&
412
+ git -C super commit -a -m "add command to .gitmodules file" &&
413
+ git -C super/submodule reset --hard $submodulesha1^ &&
414
+ git -C super submodule update submodule
415
+'
416
+
417
cat << EOF >expect
418
Execution of 'false $submodulesha1' failed in submodule path 'submodule'
419
EOF
0 commit comments