cat << EOF > blog.git/hooks/post-update
#!/bin/sh
BLOGDIR=~/blog
- GIT_WORK_TREE=$BLOGDIR git checkout -f
+ GIT_WORK_TREE=\$BLOGDIR git checkout -f
cd \$BLOGDIR
redo
EOF
Don't create a index.rst or index.md in the redo-managed directory, that will
break things.
-
-Running redo without a single blog entry source file (.md or .rst) in the
-directory will also break things.