Modernize git calling conventions in hook templates