Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/Guix 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
- Loading branch information