speed up script
This commit is contained in:
parent
d33d30be97
commit
df214e419a
20
gather.sh
20
gather.sh
@ -3,6 +3,8 @@
|
||||
apk update
|
||||
apk add jq
|
||||
|
||||
for a in 2.0 2.0-upstream 2.0-fixed; do
|
||||
git checkout ${a}
|
||||
for i in {1..3}; do
|
||||
repos=$(curl -s "https://gitlab.com/api/v4/groups/flectra-community/projects?per_page=100&page=${i}")
|
||||
git config --global merge.ours.driver true
|
||||
@ -16,25 +18,15 @@ for i in {1..3}; do
|
||||
echo ${name}
|
||||
echo ${url}
|
||||
|
||||
if [ $name != 'l10n_switzerland' ]
|
||||
if [ $name != 'l10n-switzerland' ]
|
||||
then
|
||||
git remote add $name $url
|
||||
git fetch $name
|
||||
git checkout 2.0
|
||||
git merge --no-edit --allow-unrelated-histories $name/2.0
|
||||
git checkout 2.0-fixed
|
||||
git merge --no-edit --allow-unrelated-histories $name/2.0-fixed
|
||||
git checkout 2.0-upstream
|
||||
git merge --no-edit --allow-unrelated-histories $name/2.0-upstream
|
||||
git checkout 1.0
|
||||
git merge --no-edit --allow-unrelated-histories $name/1.0
|
||||
git checkout 1.0-fixed
|
||||
git merge --no-edit --allow-unrelated-histories $name/1.0-fixed
|
||||
git checkout 1.0-upstream
|
||||
git merge --no-edit --allow-unrelated-histories $name/1.0-upstream
|
||||
git merge --no-edit --allow-unrelated-histories $name/${a}
|
||||
git remote remove $name
|
||||
git gc --prune=now
|
||||
fi
|
||||
done
|
||||
done
|
||||
git gc --prune=now
|
||||
done
|
||||
git push --all
|
Loading…
Reference in New Issue
Block a user