Merge pull request #109 from totten/gitify-pre-commit
authorKurund Jalmi <kurund@civicrm.org>
Mon, 11 Mar 2013 04:05:47 +0000 (21:05 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Mon, 11 Mar 2013 04:05:47 +0000 (21:05 -0700)
gitify: Setup pre-commit hook

1  2 
bin/gitify

diff --cc bin/gitify
index f905d00eba32aa37731c41641e4473c18cc86f4b,5e8478aa5c35174ea8628b4d8a46b2327bf6ad34..c17d8eeb626990763423d9a6e59975454d8c0327
@@@ -51,13 -72,10 +72,13 @@@ function do_svnify() 
  }
  
  function check_dep() {
-   if [ -z `which git` ]; then
+   if [ -z "`which git`" ]; then
      echo "command not found: git"
-     exit
+     exit 3
    fi
 +  if [ -z `which php` ]; then
 +    echo "command not found: php"
 +  fi
  }
  
  #### Main ####