This commit is contained in:
chiu 2023-02-15 10:10:48 +00:00
parent 7c99750665
commit 9c7c25bd98
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if bundle_update_flag
check_texts = ['@import "../../bootstrap/variables";',".response-content {\n justify-self: auto;\n}\n"] 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].split("\n")[0]} git_url = bundler_with_clean_env{%x[cd '#{env_pwd}' && git config --get remote.origin.url].split("\n")[0]}
git_remote = bundler_with_clean_env{%x[cd '#{env_pwd}' && git remote].split("\n")[0]} git_remote = bundler_with_clean_env{%x[cd '#{env_pwd}' && git remote].split("\n")[0]}
if git_url.exclude?('//ruling.digital/git') && !File.exist?("#{env_pwd}/custom_git.txt") if !(git_url.include?('//ruling.digital/git')) && !(File.exist?("#{env_pwd}/custom_git.txt"))
puts 'changing remote url' 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} https://ruling.digital/git")}
end end