git pre-commit hook in ruby