]> git.ipfire.org Git - thirdparty/git.git/commit - t/t7413-submodule-is-active.sh
submodule add: respect submodule.active and submodule.<name>.active
authorBrandon Williams <bmwill@google.com>
Fri, 17 Mar 2017 22:38:05 +0000 (15:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Mar 2017 16:51:23 +0000 (09:51 -0700)
commit1b614c07d2428927358cc7317622913d1dbd59c9
tree93f0bc029aedf7ccba6b861f9b905fcbdab1c0bb
parent1f8d711548c08e05766e067dc23e5be3b1b72657
submodule add: respect submodule.active and submodule.<name>.active

In addition to adding submodule.<name>.url to the config, set
submodule.<name>.active to true unless submodule.active is configured
and the submodule's path matches the configured pathspec.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
t/t7413-submodule-is-active.sh