From a18523b108abfc023ab606191743923e37514930 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Tue, 6 Dec 2016 19:58:54 +0000 Subject: [PATCH] pgit.sh: Add git fetch origin master during initialization from others Signed-off-by: Jan Lindemann --- scripts/pgit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/pgit.sh b/scripts/pgit.sh index cb12a313..25031bdc 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -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`