mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 20:13:32 +01:00
pgit.sh: Add git fetch origin master during initialization from others
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
964390c79d
commit
a18523b108
1 changed files with 3 additions and 2 deletions
|
|
@ -91,8 +91,9 @@ clone()
|
|||
git -C $p remote set-url --push $fromuser no_push
|
||||
$git_srv_admin -u $login -j create-personal-project $p
|
||||
git -C $p remote add origin $pushurl
|
||||
git -C $p branch --set-upstream-to origin/master
|
||||
git -C $p push
|
||||
git -C $p fetch origin master
|
||||
git -C $p push origin master
|
||||
git -C $p branch --set-upstream-to origin/master master
|
||||
set +x
|
||||
fi
|
||||
git -C $p submodule init || fatal git submodule init failed in `pwd`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue