mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
pgit.sh: Add support for PGIT_CLONE_FROM_USER and PGIT_CLONE_PROJECTS
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
a10106c8ed
commit
80a2f85490
1 changed files with 4 additions and 2 deletions
|
|
@ -37,8 +37,10 @@ clone()
|
|||
local p
|
||||
config
|
||||
cd $pdir
|
||||
local id=`whoami`
|
||||
local projects=`ssh git.jannet.de /opt/ytools/bin/git-srv-admin.sh -j list-personal-projects`
|
||||
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 -j list-personal-projects`
|
||||
for p in $projects; do
|
||||
[ -d $p ] && {
|
||||
marker "skipping existing $p"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue