mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
pgit.sh clone: Use jw-projects.py instead of git-srv-admin.sh
Replace git-srv-admin.sh list-personal-projects by the more universal "jw-projects.py list-repos" for enumerating repo names. This is a step towards supporting Git servers other than janware.com. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
1b21e33ded
commit
dc5515df09
1 changed files with 3 additions and 1 deletions
|
|
@ -110,6 +110,8 @@ clone()
|
|||
local login=$JANWARE_USER
|
||||
local projects="$PGIT_CLONE_PROJECTS"
|
||||
local ignore="$PGIT_IGNORE"
|
||||
local thisdir="${0%/*}"
|
||||
local jw_projects="/usr/bin/python3 $thisdir/jw-projects.py"
|
||||
local create_remote_user_repos=false
|
||||
|
||||
[ "$login" ] || login=`whoami`
|
||||
|
|
@ -134,7 +136,7 @@ clone()
|
|||
done
|
||||
|
||||
if [ -z "$projects" ]; then
|
||||
projects=`$git_srv_admin -u $fromuser -j list-personal-projects`
|
||||
projects=`$jw_projects list-repos --from-user $fromuser $remote_base`
|
||||
[ "$?" != 0 ] && exit 1
|
||||
fi
|
||||
n_projects=`echo $projects | wc -w`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue