Browse Source

Improve pre-push.git-hook description

rl1987 6 years ago
parent
commit
0deea98d02
1 changed files with 5 additions and 4 deletions
  1. 5 4
      scripts/maint/pre-push.git-hook

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

@@ -1,9 +1,10 @@
 #!/bin/bash
 
-# git pre-push hook script to prevent "fixup!" and "squash!" commit
-# from ending up in master, or in any branch if CUR_BRANCH check is removed.
-# Furthermore, it disallows pushing branches other than master, release-*
-# and maint-* to origin (e.g. gitweb.torproject.org).
+# git pre-push hook script to:
+# 1) prevent "fixup!" and "squash!" commit from ending up in master, release-*
+#    or maint-*
+# 2) Disallow pushing branches other than master, release-*
+#    and maint-* to origin (e.g. gitweb.torproject.org).
 #
 # To install this script, copy it into .git/hooks/pre-push path in your
 # local copy of git repository. Make sure it has permission to execute.