pr-710/sjbarag/add-remote.cloneDefault-config-v1
tagged this
26 Aug 15:45
From: Sean Barag <sean@barag.org> While the default remote name of `origin` can be overridden both pre-clone (with `git clone --origin foo`) and post-clone (with `git remote rename origin foo`), it'd be handy to have a configurable system-wide default for clones! This commit implements `remote.cloneDefault` as a parallel to `remote.pushDefault`, with prioritized name resolution: 1. (Highest priority) `git clone`'s `-o` option 2. `git config`'s `remote.cloneDefault` value 3. `origin` There should be no impact for existing users, as it's pretty unlikely that anyone's already configured `remote.cloneDefault` and the porcelain hasn't changed (as best I can tell at least!). Signed-off-by: Sean Barag <sean@barag.org> Submitted-As: https://lore.kernel.org/git/pull.710.git.1598456751674.gitgitgadget@gmail.com
Assets 2
-
2020-08-26T15:45:51Z -
2020-08-26T15:45:51Z - Loading