ccollins476ad opened a new pull request #383: upgrade: Don't warn on fixup to 
an equivalent URL
URL: https://github.com/apache/mynewt-newt/pull/383
 
 
   If `project.yml` specifies a repo with a different URL than the current 
`origin`, newt fixes the `origin` URL and produces a warning like this:
   
   ```
   WARNING: Repo's "origin" remote points to unexpected URL: 
g...@github.com:apache/mynewt-nimble.git; correcting it to 
https://github.com/apache/mynewt-nimble.git.  Repo contents may be incorrect.
   ```
   
   This commit suppresses the warning if the two URLs are "equivalent".  URLs 
are considered equivalent if:
   
   1. The strings are identical after the optional ".git" suffixes are stripped,
   
   OR
   
   2. One is a "git@" URL and the other is an "https://"; URL for the same repo. 
 For example:
   * g...@github.com:apache/mynewt-core.git
   * https://github.com/apache/mynewt-core
   
   This is useful for people who have the following setting in their git 
configuration file:
   
   ```
   [url "g...@github.com:"]
       insteadOf = https://github.com/
   ```
   
   Go users who use private github repos are especially likely to use this 
configuration.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to