This commit is contained in:
chiu 2020-02-16 10:48:12 +08:00
parent ba5c37ea25
commit 6b700ebd45
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ git_url = %x[cd '#{ENV['PWD']}' && git config --get remote.origin.url].sub("\n",
git_remote = %x[cd '#{ENV['PWD']}' && git remote].sub("\n",'') git_remote = %x[cd '#{ENV['PWD']}' && git remote].sub("\n",'')
puts ['git_url',git_url] puts ['git_url',git_url]
puts ['git_remote',git_remote] puts ['git_remote',git_remote]
if get_url != 'https://ruling.digital/git' if git_url != 'https://ruling.digital/git'
system("cd #{ENV['PWD']} && git remote set-url #{git_remote} https://ruling.digital/git") system("cd #{ENV['PWD']} && git remote set-url #{git_remote} https://ruling.digital/git")
end end
all_template.each do |folder| all_template.each do |folder|