add permissions to commmit hook