From 7df1bb7bf7d84e0bcace935e707409c47ab3b68c Mon Sep 17 00:00:00 2001 From: chiu Date: Thu, 2 Apr 2020 17:45:38 +0800 Subject: [PATCH] fix git cannot access for old version(ubuntu<=14.04) --- announcement.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcement.gemspec b/announcement.gemspec index 375134f..8bfab98 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -12,9 +12,9 @@ old_gemfile_text = File.read(env_pwd+'/Gemfile') check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"] git_url = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].sub("\n",'')} git_remote = Bundler.with_clean_env{%x[cd '#{env_pwd}' && git remote].sub("\n",'')} -if git_url != 'https://ruling.digital/git' +if git_url != 'http://ruling.digital/git' puts 'changing remote url' - Bundler.with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} https://ruling.digital/git")} + Bundler.with_clean_env{system("cd #{env_pwd} && git remote set-url #{git_remote} http://ruling.digital/git")} end all_template.each do |folder| if !folder.include?('mobile')