blob: d483add6b15e58397c3dfaa6b4c2280c5f543a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
branch=master
while getopts b: opt; do
case $opt in
b) branch="$OPTARG";;
\?) exit 1;;
esac
done
shift $((OPTIND-1))
if [ -z "$1" ]; then
git checkout "$branch"
git pull upstream "$branch"
git push
git checkout fly
git merge --no-edit "$branch"
git push
else
for dir; do
git -C "$dir" checkout "$branch"
git -C "$dir" pull upstream "$branch"
git -C "$dir" push
git -C "$dir" checkout fly
git -C "$dir" merge --no-edit "$branch"
git -C "$dir" push
done
fi
|