From 7c0f49e9318ba50b74167fa8c3610dc77b50776e Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 18 Aug 2011 14:53:55 -0400 Subject: [PATCH] update git hook --- template/script/hooks/pre-commit | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/template/script/hooks/pre-commit b/template/script/hooks/pre-commit index 426301f..261b2ae 100755 --- a/template/script/hooks/pre-commit +++ b/template/script/hooks/pre-commit @@ -2,9 +2,12 @@ OLD_GIT_DIR=$GIT_DIR -unset GIT_DIR -penchant gemfile remote -GIT_DIR=$OLD_GIT_DIR +if [ $(penchant gemfile-env) != "remote" ]; then + unset GIT_DIR + penchant gemfile remote + GIT_DIR=$OLD_GIT_DIR + git add Gemfile +fi bundle exec rake R=$?