1
0
Fork 0
forked from Firepup650/FireBot

Add pre-push hook

This commit is contained in:
Firepup Sixfifty 2025-03-27 23:21:35 -05:00
parent d5b3484619
commit ad132b808e
Signed by: Firepup650
SSH key fingerprint: SHA256:in03N+Byhi/nMAIIKKMxbNMskVXULLrovhGkPNFEsdg

8
.git-hooks/pre-push Executable file
View file

@ -0,0 +1,8 @@
if [ -z "$(git status --porcelain)" ];then
echo No uncommited changes detected
else
echo The following files have uncommited changes:
git status --porcelain
echo Refusing to push
exit 1
fi