Fix bug for older git version.
This commit is contained in:
parent
8f66372f83
commit
7a9f85ebc0
|
@ -173,7 +173,7 @@ if bundle_update_flag
|
|||
end
|
||||
Bundler.with_clean_env{%x[cp -f '#{env_pwd}'/Gemfile '#{env_pwd}'/Gemfile.bak123]}
|
||||
Bundler.with_clean_env{%x[cp -f '#{app_path}'/temp_file/Gemfile '#{env_pwd}'/Gemfile]}
|
||||
check_version = %x[cd #{env_pwd} && git branch --contains '2f23511469505bd114df2c863a477a8730bcdefa']
|
||||
check_version = %x[cd #{env_pwd} && git rev-list `git rev-parse --abbrev-ref HEAD` | grep 2f23511469505bd114df2c863a477a8730bcdefa]
|
||||
if check_version.strip != '' #update mongoid version
|
||||
command4 = ""
|
||||
puts 'mongoid has been updated!'
|
||||
|
|
Loading…
Reference in New Issue