pgit.sh: Doesn't fail clone over git-srv-admin.sh fails

pgit.sh clone does not error out in clone if git-srv-admin.sh
list-personal-projects reports an error, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2016-07-26 13:46:39 +00:00
commit 1b5e66808a

View file

@ -55,7 +55,10 @@ clone()
local id=$PGIT_CLONE_FROM_USER
local projects="$PGIT_CLONE_PROJECTS"
[ "$id" ] || id=`whoami`
[ "$projects" ] || projects=`$SSH git.jannet.de /opt/ytools/bin/git-srv-admin.sh -u $id -j list-personal-projects`
if [ -z "$projects" ]; then
projects=`$SSH git.jannet.de /opt/ytools/bin/git-srv-admin.sh -u $id -j list-personal-projects`
[ "$?" != 0 ] && exit 1
fi
for p in $projects; do
[ -d $p ] && {
marker "skipping existing $p"