topdir.mk: Init push url explicitly

Explicitly set push url (git remote set-url --push) while configuring
git repos.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2014-07-23 14:11:56 +00:00
commit a57440d896

View file

@ -102,9 +102,11 @@ git-config:
git config --global user.name $(FULL_NAME)
git config --global user.email $(WHOAMI)@jannet.de
git remote add origin $(REMOTE_GIT_URL)
git remote set-url --push origin $(REMOTE_GIT_URL)
git-clone-to-remote:
ssh git.jannet.de "/opt/ytools/bin/git-srv-admin.sh -j create-personal-project $(PROJECT)"
git remote set-url --push origin $(REMOTE_GIT_URL)
git push --set-upstream origin master
git push --all $(REMOTE_GIT_URL)