Skip to content

Instantly share code, notes, and snippets.

@jedahu
Created January 26, 2012 23:10
Show Gist options
  • Save jedahu/1685732 to your computer and use it in GitHub Desktop.
Save jedahu/1685732 to your computer and use it in GitHub Desktop.
git hooks for clojurescript projects
#!/bin/sh
git diff-index --check --cached $against -- && \
rm -rf out && \
git stash save --keep-index 'pre-commit unstaged changes' && \
lein clojurescript fresh test && \
git stash pop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment