Skip to content

Commit

Permalink
Proper docs for .revision generation git hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat authored Oct 30, 2018
1 parent 3e0448b commit c594f82
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dev/git-hooks/post-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
# Generate a .revision file to be used with browser cache busting
# @see /src/Theme/Styles.php
# For use when busting cache locally or when a Beanstalk deployment is not possible

git rev-parse HEAD > .revision

0 comments on commit c594f82

Please sign in to comment.