1
1
Fork 0
mirror of https://github.com/tonydamage/nux-env.git synced 2025-12-11 13:24:28 +01:00
nux-env/bin/gerrit-clone-all
Tony Tkacik 9c87f7198a gerrit-clone-all: clone all from gerrit
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
2015-08-28 14:34:16 +02:00

13 lines
208 B
Bash
Executable file

#!/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