canonical / canonical/gitlance

task install-githooks overwrites existing pre-push hook

Open Beginner friendly
#9 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8
Forks
3
Avg merge
11h 9m
Merged PRs (30d)
6

Description

The `task install-githooks` command copies `githooks/pre-push` to `.git/hooks/pre-push`, overwriting any existing hook without warning.

Users with custom pre-push hooks lose their configuration.

Contributor guide

Open the contributing guide

Research direction

Start with the `task install-githooks` entry and inspect how it copies `githooks/pre-push` to `.git/hooks/pre-push`. Check the existing-hook behavior, then verify that a custom pre-push hook is not silently overwritten and that users receive an appropriate warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.