Permalink
Browse files

Cleanup

  • Loading branch information...
1 parent a8a429c commit a114999c8f9ce2ce5041c95c55aef77dcf255d13 @weierophinney committed Jun 24, 2012
Showing with 3 additions and 11 deletions.
  1. +1 −1 .vimproject
  2. +2 −10 hooks/post-update
View
@@ -35,7 +35,7 @@ mwop=/home/matthew/git/mwop CD=. filter="README TODO.md console *.php *.xml *.tx
}
}
hooks=hooks {
- post-receive
+ post-update
}
module=module {
Application=Application {
View
@@ -1,16 +1,8 @@
#!/bin/bash
#
-# post-receive hook
+# post-update hook
#
-# The "post-receive" script is run after receive-pack has accepted a pack
-# and the repository has been updated. It is passed arguments in through
-# stdin in the form
-# <oldrev> <newrev> <refname>
-# For example:
-# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
-#
-# see contrib/hooks/ for a sample, or uncomment the next line and
-# rename the file to "post-receive".
+# Deploys if master branch was updated
branch=$(git rev-parse --symbolic --abbrev-ref $1)
echo "Commit was for branch $branch"

0 comments on commit a114999

Please sign in to comment.