summaryrefslogtreecommitdiff
path: root/scripts/git-hooks/pre-commit
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/git-hooks/pre-commit')
-rwxr-xr-xscripts/git-hooks/pre-commit9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/git-hooks/pre-commit b/scripts/git-hooks/pre-commit
index f930ca7..ee010cb 100755
--- a/scripts/git-hooks/pre-commit
+++ b/scripts/git-hooks/pre-commit
@@ -6,10 +6,15 @@ if [ "$currentBranch" == "master" ]; then
gitlabOccurances=$(grep -c -m1 gitlab .gitmodules)
if [ $gitlabOccurances -eq 1 ]; then
- echo "COMMIT INVALID: You can't commit anything to the master branch that pulls
+ echo "
+*************************************************************************
+COMMIT INVALID: .gitmodules has a reference to GitLab
+
+You can't commit anything to the master branch that pulls
from GitLab because outsiders won't be able to build it.
-If you need to use a submodule from GitLab, do so from a branch."
+If you need to use a submodule from GitLab, do so from a branch.
+*************************************************************************"
exit 1
fi
fi