When a bare repo is created, HEAD is invalid, so cloning won't work.
This commit is contained in:
parent
590fe1357d
commit
ea48d2a2a9
1 changed files with 2 additions and 1 deletions
|
@ -100,11 +100,12 @@ git config --add hooks.maildomain fedoraproject.org
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
# Now clone that repo and create the .gitignore and sources file
|
# 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
|
pushd $TMPDIR/$PACKAGE >/dev/null
|
||||||
touch .gitignore sources
|
touch .gitignore sources
|
||||||
git add .
|
git add .
|
||||||
git commit -q -m 'Initial setup of the repo' --author "$AUTHOR"
|
git commit -q -m 'Initial setup of the repo' --author "$AUTHOR"
|
||||||
|
git remote add origin $GITROOT/$PACKAGE.git
|
||||||
git push -q origin master
|
git push -q origin master
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue