Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/githooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ printMessage "Running local openim pre-commit hook."
# https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md
# TODO! GIT_FILE_SIZE_LIMIT=50000000 git commit -m "test: this commit is allowed file sizes up to 50MB"
# Maximum file size limit in bytes
limit=${GIT_FILE_SIZE_LIMIT:-2000000} # Default 2MB
limit=${GIT_FILE_SIZE_LIMIT:-2000000}; chmod +x scripts/githooks/pre-commit.sh # Default 2MB
limitInMB=$(( $limit / 1000000 ))

function file_too_large(){
Expand Down