repository="$3"
usage () {
- echo "usage: ikiwiki-makerepo cvs|svn|git|monotone|darcs srcdir repository" >&2
+ echo "usage: ikiwiki-makerepo svn|git|svn|monotone|darcs|cvs srcdir repository" >&2
echo " ikiwiki-makerepo bzr|mercurial srcdir" >&2
exit 1
}
cd "$srcdir"
git init
echo /.ikiwiki > .gitignore
- echo /recentchanges >> .gitignore
git add .
git commit -m "initial commit"
git remote add origin "$repository"