update post-commit, fixed the git issue

This commit is contained in:
John Bintz 2012-04-20 11:34:05 -04:00
parent 57fc9a0e99
commit cabaea5ac3
6 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,6 @@ require 'rubygems'
require 'penchant'
if Penchant::Gemfile.do_full_env_switch!(ARGV[0])
system %{bundle}
puts "Gemfile switched to #{ARGV[0]}"
else
exit 0

View File

@ -21,3 +21,4 @@ if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
git add Gemfile*
fi
exit 0

View File

@ -1,4 +1,4 @@
#!/bin/bash
# this is now handled in commit-msg, to allow for skipping of test running based on the commit message
# this has been moved to commit-msg

View File

@ -5,7 +5,7 @@ if File.file?('Gemfile.erb')
Dir.chdir '..' do
File.readlines(File.join(pwd, 'Gemfile.erb')).find_all { |line| line[':git'] }.each do |line|
repo = line[%r{:git => (['"])(.*)\1}, 2]
repo = line[%r{:git => (['"])([^'"]+)\1}, 2]
puts "Installing #{repo}"
system %{git clone #{repo}}

View File

@ -21,4 +21,4 @@ if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
git add Gemfile*
fi
exit 0

View File

@ -1,4 +1,5 @@
#!/bin/bash
unset GIT_DIR
penchant gemfile remote --switch-back