update post-commit, fixed the git issue
This commit is contained in:
parent
57fc9a0e99
commit
cabaea5ac3
@ -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
|
||||
|
@ -21,3 +21,4 @@ if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
|
||||
git add Gemfile*
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}}
|
||||
|
@ -21,4 +21,4 @@ if [ "$(penchant gemfile-env)" != "remote deployment" ]; then
|
||||
git add Gemfile*
|
||||
fi
|
||||
|
||||
|
||||
exit 0
|
||||
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
unset GIT_DIR
|
||||
penchant gemfile remote --switch-back
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user