Closed wahjava closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
3d02df4
) 56.42% compared to head (f266be8
) 56.44%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the review, updated with the credits.
On platforms, where soft-serve executable gets installed in a path that is not the same throughout installation, or upgrades, hooks break. Some examples of such a situation is when moving soft-serve repositories from one OS to another OS, or on NixOS (NixOS/nixpkgs#272128)
This commit passes the path to the current executable as an environment variable $SOFT_SERVE_EXE_PATH to the hooks.
To fix/update existing repository hooks:
[/path/to/soft-serve/repos] $ grep -ERl \ '^[^[:space:]]+soft-serve[^[:space:]]+' . | xargs sed -r -e \ 's,^([^[:space:]]soft-serve[^[:space:]]),"${SOFT_SERVE_EXE_PATH}",g' -i