]> git.ipfire.org Git - thirdparty/git.git/commit - transport.c
push: propagate remote and refspec with --recurse-submodules
authorBrandon Williams <bmwill@google.com>
Wed, 5 Apr 2017 17:47:19 +0000 (10:47 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Apr 2017 07:45:26 +0000 (00:45 -0700)
commit06bf4ad1db92c32af38e16d9b7f928edbd647780
tree2633f6ac10cfc7ceaa58972990b7d3a82afa5d0d
parent93481a6b89be41086997ecaf9454f0c0bf6a961e
push: propagate remote and refspec with --recurse-submodules

Teach "push --recurse-submodules" to propagate, if given a name as remote, the
provided remote and refspec recursively to the pushes performed in the
submodules. The push will therefore only succeed if all submodules have a
remote with such a name configured.

Note that "push --recurse-submodules" with a path or URL as remote will not
propagate the remote or refspec and instead use the default remote and refspec
configured in the submodule, preserving the current behavior.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c
submodule.h
t/t5531-deep-submodule-push.sh
transport.c