Funkin/.github/hooks/pre-push

5 lines
135 B
Bash
Executable file

#!/bin/sh
if git diff --cached --submodule | grep -q "^+"; then
echo "WARNING: You have unpushed changes in submodules."
exit 1
fi