Fix Drush not installing scripts to configured hooks directory

Created on 17 February 2023, almost 2 years ago
Updated 3 March 2023, over 1 year ago

Problem/Motivation

Git allows users to configure the hooks directory. This allows teams to share hooks by committing them if they want to. Our Drush dcq command assumes that the .git/hooks directory is used.

Steps to reproduce

  1. Configure a custom hooks directory, such as .githooks.
  2. Run the Drush dcq command.
  3. Pre-commit scripts are not installed in .githooks.

Proposed resolution

Check the configured Git hooks directory.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States darren oh Lakeland, Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024