On 12-07-06 04:43 PM, Marc Branchaud wrote:
> So why change "git clone" to always set remote.default if the functionality
> remains the same either way?
> To me it makes a more consistent implementation.  Since "git remote add" sets
> remote.default if it's adding the first remote to the repository, when clone
> itself adds the first remote it should do the same.
> Plus this approach makes "clone -o" also work without any special-casing, so
> the code is cleaner, IMHO.

Also, it means that

        git clone /some/repo


        git clone -o origin /some/repo

produce exactly the same result.

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to