Add submodule-update-foreach.sh and a post-pull hook for it
[config/vcsh.git] / .config / vcsh / hooks-available / submodule-update-foreach.sh
1 #!/bin/sh
2
3 set -e
4
5 : "${XDG_CONFIG_HOME:="$HOME/.config"}"
6
7 # XXX This should really be a normal post-pull hook, but vcsh lacks
8 # per-repository pull/push hooks, see
9 # https://github.com/RichiH/vcsh/issues/213
10
11 echo "Updating submodules..."
12 vcsh foreach -g "$XDG_CONFIG_HOME/vcsh/hooks-available/submodule-update.sh"