git clone safety

Git repo may have hooks. But those hooks are repo local and not cloned from origin repo when running git clone.

Submodules on other hand, are the sources of multiple CVEs that lead to possible malicious code execution.

So:

git clone

is OK.

But:

git clone --recurse-submodules

is … I'm not so sure.

Date: 2026-07-23 Thu 00:00

Author: 🐈

Created: 2026-07-24 Fri 11:12

Validate