revert 3564d43036
All checks were successful
continuous-integration/drone/push Build is passing

revert pre-commit.entrypoint.sh: skip variable creation

Signed-off-by: Filip Kobierski <fkobi@fsfe.org>
This commit is contained in:
2025-12-04 10:07:06 +00:00
parent 8ccfdb2056
commit 1cf8647cc6

View File

@@ -4,9 +4,9 @@ set -euo pipefail
# Get the changed files
target_branch="${1:-master}"
source_branch="$(git rev-parse --abbrev-ref HEAD)"
files="$(git diff --name-only "$source_branch" "$target_branch")"
files_args=""
for file in git diff --name-only "$source_branch" "$target_branch"; do
for file in $files; do
if [ -f "$file" ]; then
files_args+="--file $file "
fi