mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
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:
parent
0009574a9e
commit
1b5e66808a
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue