platform icon indicating copy to clipboard operation
platform copied to clipboard

fix: limit local branch commit range for git hooks

Open sujitaw opened this issue 1 month ago • 6 comments

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

sujitaw avatar Oct 16 '25 06:10 sujitaw