Explicitly use oneline git log format

for those of us with crazy git configs
Use bash for git hooks
Merge pull request #2675 from dimagi/rebuildstaging

Make scripts more explicit