canonical / canonical/gitlance
task install-githooks overwrites existing pre-push hook
Open
Beginner friendly
- 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
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