1 2 3 4 5
#!/bin/bash # $1 is the file containing the commit message gherrit hook commit-msg "$1" exit $?