new-stable-diffusion/update-submodules.sh
Ryan Voots 7379b47d35
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/update-submodule Pipeline was successful
ci/woodpecker/manual/build Pipeline was successful
branch name
2024-06-05 11:59:12 -04:00

7 lines
211 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
git submodule foreach --recursive git fetch --all
git submodule foreach git reset --hard origin/master
git diff-index --quiet HEAD || git commit -am 'Automatic update submodule'