blob: 5151bb92ce6826d6eff482b6a1a88932184d5112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
command=$1
branch=$2
plugin=$3
if [ ! $command ] || [ ! $branch ]; then
echo " Usage: ./subtree.sh <command> <branch> [<plugin-name>]
Example: ./subtree.sh pull develop etherpad"
exit
fi
git checkout $branch
if [ $plugin ]; then
git subtree $command --prefix mod/$plugin git@gitorious.org:lorea/$plugin.git $branch
else
cat *-plugins | while read plugin; do
git subtree $command --prefix mod/$plugin git@gitorious.org:lorea/$plugin.git $branch
done
fi
|