1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00

gerrit-clone-all: clone all from gerrit

Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
Tony Tkáčik 2015-08-28 14:34:16 +02:00
parent 2715984095
commit 9c87f7198a

13
bin/gerrit-clone-all Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
PORT=29418
GERRIT=$1
CURRENT_DIR=$(pwd)
for p in $(ssh -p $PORT $GERRIT 'gerrit ls-projects')
do
echo "Checking out $p";
mkdir $p;
cd $p;
git clone "ssh://$GERRIT:$PORT/$p" .
cd $CURRENT_DIR;
done