diff options
| author | Mike McQuaid | 2017-06-16 14:08:18 +0100 |
|---|---|---|
| committer | GitHub | 2017-06-16 14:08:18 +0100 |
| commit | 8cebfbda18887e1bc036986d2af745c377805479 (patch) | |
| tree | f5e1b2812741125abff210605db2f2dec6b489d3 | |
| parent | adad1893deb92e48b0e20d42fb84f166f016eceb (diff) | |
| parent | 569180dfe5769cf41967c95b60c87130f41c91b9 (diff) | |
| download | brew-8cebfbda18887e1bc036986d2af745c377805479.tar.bz2 | |
Merge pull request #2784 from bfontaine/suspicious-git-origin
diagnostic: Fix suggested git remote commands
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 8be357b0d..05e48da21 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -740,7 +740,7 @@ module Homebrew Unless you have compelling reasons, consider setting the origin remote to point at the main repository by running: - git -C "#{HOMEBREW_REPOSITORY}" remote add origin #{Formatter.url("https://github.com/Homebrew/brew.git")} + git -C "#{HOMEBREW_REPOSITORY}" remote set-url origin #{Formatter.url("https://github.com/Homebrew/brew.git")} EOS end end @@ -769,7 +769,7 @@ module Homebrew Unless you have compelling reasons, consider setting the origin remote to point at the main repository by running: - git -C "#{coretap_path}" remote add origin #{Formatter.url("https://github.com/Homebrew/homebrew-core.git")} + git -C "#{coretap_path}" remote set-url origin #{Formatter.url("https://github.com/Homebrew/homebrew-core.git")} EOS end end |
