diff options
| author | Matt Hunter <m@lfurio.us> | 2026-05-10 03:08:00 -0400 |
|---|---|---|
| committer | Matt Hunter <m@lfurio.us> | 2026-05-10 04:47:01 -0400 |
| commit | 2fb1cc17f0c57f3f482791390e6c81eb5f906bc9 (patch) | |
| tree | de843fbcc335a25bacc0f203d3c5802916421005 | |
| parent | 1f17dcae1373968bed8c6e904c905566a45204ec (diff) | |
| download | git-sonar-2fb1cc17f0c57f3f482791390e6c81eb5f906bc9.tar.gz git-sonar-2fb1cc17f0c57f3f482791390e6c81eb5f906bc9.zip | |
After a bisect session begins and up until the first 'bad' and 'good'
revisions are identified, BISECT_EXPECTED_REV is undefined, and the
freshly started session goes undetected by git-precheck.
Among a few potential alternatives, BISECT_START is a better signal, as
it covers this gap and exists for the entire duration of a session -
from 'git bisect start' to 'git bisect reset'.
The file-based detection paradigm makes this choice more obvious.
Signed-off-by: Matt Hunter <m@lfurio.us>
Diffstat (limited to '')
| -rwxr-xr-x | git-precheck | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-precheck b/git-precheck index 0c6bc98..fa42eb3 100755 --- a/git-precheck +++ b/git-precheck @@ -81,7 +81,7 @@ check rebase-apply rebase/am check MERGE_HEAD merge check REVERT_HEAD revert check CHERRY_PICK_HEAD cherry-pick -check BISECT_EXPECTED_REV bisect +check BISECT_START bisect if [ -n "$opt_dirty" ] || [ -n "$opt_untracked" ]; then git_status="$(git status --porcelain 2>/dev/null)" |
