mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
pgit.sh: Add --recurse-submodules to all git fetch, pull and push
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
019dd47c02
commit
098653aed2
1 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ clone()
|
|||
fat_marker "Fetching project $p from user $fromuser"
|
||||
if [ "$fromuser" = "$login" ]; then
|
||||
if [ -d $p ]; then
|
||||
run_git -C $p pull
|
||||
run_git -C $p pull --recurse-submodules
|
||||
else
|
||||
run_git clone ssh://$login@git.janware.com/srv/git/$fromuser/proj/$p
|
||||
fi
|
||||
|
|
@ -138,7 +138,7 @@ clone()
|
|||
run_git -C $p remote add $remotename $pullurl
|
||||
run_git -C $p remote set-url --push $remotename no_push
|
||||
}
|
||||
run_git -C $p fetch $remotename master
|
||||
run_git -C $p fetch --recurse-submodules $remotename master
|
||||
else
|
||||
# set -x
|
||||
run_git clone ssh://$login@git.janware.com/srv/git/$fromuser/proj/$p
|
||||
|
|
@ -146,7 +146,7 @@ clone()
|
|||
run_git -C $p remote set-url --push $remotename no_push
|
||||
$git_srv_admin -u $login -j create-personal-project $p
|
||||
run_git -C $p remote add origin $pushurl
|
||||
run_git -C $p push origin master
|
||||
run_git -C $p push --recurse-submodules origin master
|
||||
$git_srv_admin -u $login -j update-descriptions $p
|
||||
run_git -C $p branch --set-upstream-to origin/master master
|
||||
# set +x
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue