mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-31 01:11:36 +08:00
When a bare repo is created, HEAD is invalid, so cloning won't work.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user