Browse Source

Improve comment at the top

rl1987 6 years ago
parent
commit
7c6dc28881
1 changed files with 5 additions and 3 deletions
  1. 5 3
      scripts/maint/pre-push.git-hook

+ 5 - 3
scripts/maint/pre-push.git-hook

@@ -1,8 +1,10 @@
 #!/bin/bash
 #!/bin/bash
 
 
-# git pre-push hook script to prevent "fixup!" and "squash!" commit
+# To install this script, copy it into .git/hooks/pre-push path in your
-# from ending up in master, or in any branch if CUR_BRANCH check is removed.
+# local copy of git repository. Make sure it has permission to execute.
-# It is meant to be placed in .git/hooks directory.
+#
+# This is git pre-push hook script to prevent "fixup!" and "squash!" commits
+# from ending up in upstream branches (master, release-* or maint-*).
 #
 #
 # The following sample script was used as starting point:
 # The following sample script was used as starting point:
 # https://github.com/git/git/blob/master/templates/hooks--pre-push.sample
 # https://github.com/git/git/blob/master/templates/hooks--pre-push.sample