Skip to content

Commit

Permalink
Merge pull request #226 from DSD-DBS/fix-pre-commit-execution
Browse files Browse the repository at this point in the history
fix: Correctly call lfs in git hooks
  • Loading branch information
dominik003 authored Jan 9, 2024
2 parents f825bbb + ce02a3f commit d0916a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/hooks/+pre-commit-and-lfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

STAGE=$(basename "$0")

/opt/git/global-hooks/+pre-commit.sh $STAGE "$@"
exec git lfs $STAGE "${@:2}"
/opt/git/global-hooks/+pre-commit.sh $STAGE "$@" < /dev/null
exec git lfs $STAGE "$@"

0 comments on commit d0916a8

Please sign in to comment.