Skip to content

Commit

Permalink
feat: Updated scripts/githooks/pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 28, 2023
1 parent c756bf1 commit 2d10a9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@ printMessage "Running local kubecub pre-commit hook."

# flutter format .
# https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md
# Check if go-gitlint is available and install if necessary
if [ ! -f "${GITLINT_DIR}" ]; then
printError "${GITLINT_DIR} not found, installing..."
make tools || make tools.verify.go-gitlint
fi
if [ ! -f "$GITLINT_DIR" ]; then
printError "go-gitlint not found and has been installed. Please run 'make tools' OR 'make tools.verify.go-gitlint' if the issue persists."
make tools || make tools.verify.go-gitlint
fi

# 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
Expand Down

0 comments on commit 2d10a9e

Please sign in to comment.