Skip to content

Instantly share code, notes, and snippets.

@iiska
Created April 2, 2012 07:21
Show Gist options
  • Save iiska/2281373 to your computer and use it in GitHub Desktop.
Save iiska/2281373 to your computer and use it in GitHub Desktop.
Post-receive hook which generates html from README.md to be used with gitweb
#!/bin/sh
#
# Post-receive hook script which generates README.html to git-dir from
# README.md found at the head of master branch in repository.
#
# Gitweb can read the README.html and embed it to the project summary page.
git cat-file blob HEAD:README.md | markdown > $GIT_DIR/README.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment