When a bare repo is created, HEAD is invalid, so cloning won't work.

This commit is contained in:
Patrick Uiterwijk 2015-02-19 15:56:26 +00:00
parent 590fe1357d
commit ea48d2a2a9

View file

@ -100,11 +100,12 @@ git config --add hooks.maildomain fedoraproject.org
popd >/dev/null
# Now clone that repo and create the .gitignore and sources file
git clone -q /srv/git/rpms/$PACKAGE.git $TMPDIR/$PACKAGE
git init -q $TMPDIR/$PACKAGE
pushd $TMPDIR/$PACKAGE >/dev/null
touch .gitignore sources
git add .
git commit -q -m 'Initial setup of the repo' --author "$AUTHOR"
git remote add origin $GITROOT/$PACKAGE.git
git push -q origin master
popd >/dev/null