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:
parent
2715984095
commit
9c87f7198a
1 changed files with 13 additions and 0 deletions
13
bin/gerrit-clone-all
Executable file
13
bin/gerrit-clone-all
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue