platform
platform copied to clipboard
fix: limit local branch commit range for git hooks
What
- modified pre-push script to only check commits related to local branch when pushing a local branch to remote for first time .
Summary by CodeRabbit
-
Bug Fixes
- Warns when a commit message file is missing and exits gracefully
- Better handling for initial push with improved base-branch detection and safe fallbacks
-
Improvements
- Commit validation messages are colorized for clearer visibility
- Validates push input and reports the computed commit range before checks
- Robust temporary-input handling to avoid spurious failures