revert 3564d43036
All checks were successful
continuous-integration/drone/push Build is passing
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user