Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

Using Git Hooks on the SIRSTEVEHQ CP Hosting Platform

We require a very small change to the config for git hooks to work on the platform.

You can either edit the config file, in .git/config, and add this line inside the [core] section:

hooksPath = /usr/bin/stack-git-hooks

Or, alternatively, run the following command from within your repo:

git config core.hooksPath /usr/bin/stack-git-hooks

Both of the above commands will point your GIT repository to use our hook, to ensure your hooks are executed correctly.

This change has been made as a security measure to ensure that hooks can only be written in languages we support on the platform. 

If you have any questions regarding this, please feel free to contact our support team who will be more than happy to assist further.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I connect a website via SSH? - SIRSTEVEHQ CP

SSH, or ‘Secure Shell’, is a method of remotely accessing and managing your site files, as well...

How do I import a .sql file via the command-line? - SIRSTEVEHQ CP

If you've set up SSH access for a package then you can use one of two methods to import a MySQL...

How do I connect to SSH using 2FA? - SIRSTEVEHQ CP

It's only recommend that you connect to your package via SSH if you're familiar with the command...

How do I run Composer via SSH? - SIRSTEVEHQ CP

At SIRSTEVEHQ we run multiple different versions of PHP. On our SSH servers, the execution of...

Basic UNIX commands and utilities - SIRSTEVEHQ CP

When managing your SIRSTEVEHQ CP web hosting, you may wish to enable SSH access for one or more...