summaryrefslogtreecommitdiff
path: root/_posts/2009-04-14-git-and-prove.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--_posts/2009-04-14-git-and-prove.md (renamed from _posts/2009-04-14-git-and-prove.textile)8
1 files changed, 4 insertions, 4 deletions
diff --git a/_posts/2009-04-14-git-and-prove.textile b/_posts/2009-04-14-git-and-prove.md
index fca6329..60c8740 100644
--- a/_posts/2009-04-14-git-and-prove.textile
+++ b/_posts/2009-04-14-git-and-prove.md
@@ -1,14 +1,14 @@
---
layout: post
-category: app
-title: git and prove
+summary: In which I add a hook to git to run my tests.
+title: Git and prove
---
A little trick to force you to run your tests before a commit:
-in a repositorie, create the following file *.git/hooks/pre-commit* with this content:
+in a repositorie, create the following file **.git/hooks/pre-commit** with this content:
-{% highlight bash %}
+{% highlight sh %}
#!/bin/sh
if [ -d t ]; then
res=`prove t`