- echo "Initial index page" > index.mdwn
- echo .ikiwiki > .gitignore
- git add index.mdwn .gitignore
- git commit -m'Initial commit'
- # Stop git performing fast forwards -- this is to avoid
- # overwriting the remote ref and losing other peoples'
- # commits from there.
- git config receive.denyNonFastForwards true
- git config core.bare true
- mv .git $REPO
- test -d .ikiwiki && mv .ikiwiki ..
- cd ..
- rm -r $SRCDIR
- git clone -l -s $REPO $SRCDIR
- test -d .ikiwiki && mv .ikiwiki $SRCDIR
+ echo /.ikiwiki > .gitignore
+ git add .
+ git commit -m "initial commit"
+ git remote add origin $REPOSITORY
+ git config branch.master.merge refs/heads/master
+ git push --all