Merge branch 'sb/clone-origin'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 Oct 2020 22:09:49 +0000 (15:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Oct 2020 22:09:50 +0000 (15:09 -0700)
commit40696c67274305d6258539de5a36649cf833f712
treec7f286e661d93790c42b5443cd4b0ab9dd9c6e4e
parentde0a7effc86aadf6177fdcea52b5ae24c7a85911
parentde9ed3ef3740f8227cc924e845032954d1f1b1b7
Merge branch 'sb/clone-origin'

"git clone" learned clone.defaultremotename configuration variable
to customize what nickname to use to call the remote the repository
was cloned from.

* sb/clone-origin:
  clone: allow configurable default for `-o`/`--origin`
  clone: read new remote name from remote_name instead of option_origin
  clone: validate --origin option before use
  refs: consolidate remote name validation
  remote: add tests for add and rename with invalid names
  clone: use more conventional config/option layering
  clone: add tests for --template and some disallowed option pairs
Documentation/config.txt
Documentation/git-clone.txt
builtin/clone.c
builtin/remote.c
refspec.c
refspec.h