Your pre-commit hook never runs, and Git prints `hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.`
BeginnerTroubleshootingSubmodules, LFS and Hooks
Answer
Likely causes → The hook file lacks the execute bit (created in an editor, copied from Windows, or extracted from an archive).
Diagnose → ls -l .git/hooks/pre-commit
Fix → chmod +x .git/hooks/pre-commit. Also check the shebang line (#!/usr/bin/env bash) and that the file has no .sample suffix.
Prevent → Keep hooks in the repo (e.g. .githooks/) committed with mode 100755 (git update-index --chmod=+x .githooks/pre-commit), and install them with a script.
More on Submodules, LFS and Hooks
`fatal: No url found for submodule path 'libs/common' in .gitmodules`IntermediateAfter cloning, the submodule directories exist but are empty.Beginner`git submodule update` fails: `fatal: remote error: upload-pack: not our ref 3f2a9c1...` and `Fetched in submodule path 'libs/common', but it did not contain 3f2a9c1. Direct fetching of that commit failed.`Intermediate`git status` keeps showing `modified: libs/common (new commits)` even though you never touched it.BeginnerYou committed inside a submodule, ran `git submodule update`, and your commits vanished.Intermediate`git submodule add` fails with `fatal: 'libs/common' already exists in the index`.Intermediate