Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- FILE=js/git-status.js
- echo "// This file is autogenerated by a post-checkout hook. Your changes here WILL be lost." > $FILE
- echo "GIT_BRANCH = '$(git rev-parse --abbrev-ref HEAD)';" >> $FILE
- echo "GIT_COMMIT_HASH = '$(git rev-parse HEAD)';" >> $FILE
- echo "GIT_COMMIT_TIME = '$(git log -1 -s --format=%ci HEAD)';" >> $FILE
- echo "Updated $FILE"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement