Update commit_all_submodules script

pull/1/head
Timothy Pearson 12 years ago
parent 9bf803fd34
commit 5ead2a2d3b

@ -20,8 +20,13 @@ read -p "Enter your commit message []: " -e commitmessage
git submodule foreach "git commit -a -m \"$commitmessage\" || true"
git submodule foreach "sed -i \"s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g\" .git/config"
git submodule foreach "git push origin master || true"
git submodule foreach "git pull && git push origin master"
RETCODE=$?
if [[ $RETCODE != 0 ]]; then
echo "Something went wrong"
exit 1
fi
git commit -a -m "$commitmessage" || true
sed -i "s/system@scm\.trinitydesktop\.org/$gituser@scm\.trinitydesktop\.org/g" .git/config
git push origin master || true
git pull && git push origin master || true

Loading…
Cancel
Save