Improve repo post-update hook interface

Make repository directory the current directory and ignore exit status
for the post-update repository hook.
Add a TODO item