Created
February 24, 2014 17:20
-
-
Save jshbrntt/9192631 to your computer and use it in GitHub Desktop.
Hook for writing latest repository short-hash to text file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rm www/version.txt -i | |
cat /dev/null > www/version.txt | |
git rev-parse --short HEAD >> www/version.txt | |
git add www/version.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment