Server-Root/attach_modules.sh
2018-08-08 22:27:28 +02:00

4 lines
259 B
Bash
Executable File

#!/bin/bash
git submodule foreach -q --recursive 'echo "Updating $name"; git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master); git pull origin $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'