Add submodule-update-foreach.sh and a post-pull hook for it
authorAntonio Ospite <ao2@ao2.it>
Mon, 17 Dec 2018 09:16:38 +0000 (10:16 +0100)
committerAntonio Ospite <ao2@ao2.it>
Mon, 17 Dec 2018 09:37:45 +0000 (10:37 +0100)
commit0a50375aa4ea1d908e024e2ed8706a4c64670600
treef661a915ac7f910aebd1a17dd1018e25e29ab752
parent6eede8729318d0419b32c0d9424297889a8e57b0
Add submodule-update-foreach.sh and a post-pull hook for it

Update submodules also after a "vcsh pull" command.

This requires a whole new script because vcsh does not call post-pull
hooks after pulling each repositories, it only calls the hook once after
pulling all of them.

See https://github.com/RichiH/vcsh/issues/213

When the issue gets fixed submodule-update-foreach.sh can be removed and
post-pull.00-submodule-init can link to submodule-update.sh
.config/vcsh/hooks-available/submodule-update-foreach.sh [new file with mode: 0755]
.config/vcsh/hooks-enabled/post-pull.00-submodule-init [new symlink]