Skip to content

fix: check if base sha exists - #482

Merged
jamacku merged 1 commit into
redhat-plumbers-in-action:mainfrom
jamacku:fix-wrong-rev
Feb 10, 2025
Merged

fix: check if base sha exists#482
jamacku merged 1 commit into
redhat-plumbers-in-action:mainfrom
jamacku:fix-wrong-rev

Conversation

@jamacku

@jamacku jamacku commented Feb 10, 2025

Copy link
Copy Markdown
Member

When base branch is out of date (not synced with upstream), the base sha could have value of 0000000000000000000000000000000000000000. In such case differential ShellCheck can't use it to compare with the head sha and it will exit.

This should make cases like this easier to debug:

fatal: Invalid revision range 0000000000000000000000000000000000000000..81375bf5d11901e029aa298f36c8c984ab180adf

When base branch is out of date (not synced with upstream), the base sha
could have value of `0000000000000000000000000000000000000000`. In such
case differential ShellCheck can't use it to compare with the head sha
and it will exit.
@codecov

codecov Bot commented Feb 10, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 72.97%. Comparing base (c1485df) to head (ad3635e).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/index.sh 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   73.33%   72.97%   -0.37%     
==========================================
  Files           5        5              
  Lines         330      333       +3     
==========================================
+ Hits          242      243       +1     
- Misses         88       90       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jamacku
jamacku merged commit 9897406 into redhat-plumbers-in-action:main Feb 10, 2025
@jamacku
jamacku deleted the fix-wrong-rev branch February 10, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant