mirror of
https://github.com/tonydamage/nux-env.git
synced 2025-12-11 13:24:28 +01:00
13 lines
208 B
Bash
Executable file
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
|