Skip to content

Commit

Permalink
Reverted to pre-commit hook, as it's already fixed in develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayam04 authored Oct 11, 2024
1 parent a67aa5e commit c8d08c1
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions docker/pre_commit_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,7 @@ docker compose run -T --no-deps --entrypoint "/bin/sh -c \
'git config user.name $GIT_USERNAME && git config user.email $GIT_USEREMAIL \
&& python3 $PYTHON_PRE_COMMIT_SYMLINK $@'" dev-server

# Update Git config in Docker container required by npx lint-staged
$DOCKER_EXEC_COMMAND git config user.name $(git config user.name)
$DOCKER_EXEC_COMMAND git config user.email $(git config user.email)

# Run hook in container
CMD="$DOCKER_EXEC_COMMAND python3 ./$PYTHON_PRE_COMMIT_SYMLINK $@"
echo "Running $CMD"

$CMD

# Save exit code from the docker command, so we can later use it to exit this pre-commit hook at end.
# Save exit code from the docker command, so we can later use it to exit this
# pre-commit hook at end.
exitcode=$?
echo "Python script exited with code $exitcode"
Expand Down

0 comments on commit c8d08c1

Please sign in to comment.