2
0
Fork 0
backend/backend-update

22 lines
369 B
Plaintext
Raw Normal View History

2019-09-01 01:19:18 +08:00
#!/bin/bash
set -e
branch="$1"
if [ -z $branch ]; then
echo "Usage: $0 type/short-description"
exit 1
fi
git checkout master
git checkout -b "$branch"
git submodule foreach git pull origin master
git add .
updated=$(git diff master --name-status | cut -f 2)
git commit -S -m "$branch: Bump $updated"
git push --set-upstream origin "$branch"
git checkout master