This repository has been archived on 2025-04-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
git-hooks/post-commit
2019-05-19 14:18:51 +00:00

13 lines
268 B
Bash
Executable file

#!/bin/bash
# Check if the directory is the root directory
if [ ! -d ".git/" ]; then
echo "Please commit from within the root directory"
exit 1
fi
# Run every file inside the post-commit.d directory
for file in .git/hooks/post-commit.d/*
do
. $file
done