]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5505-remote.sh
remote rename/remove: handle branch.<name>.pushRemote config values
authorBert Wesarg <bert.wesarg@googlemail.com>
Mon, 27 Jan 2020 07:04:30 +0000 (08:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Feb 2020 18:52:10 +0000 (10:52 -0800)
commit923d4a5ca4f86c19247ef436e6d03d261ebce904
treee75aaa513b27247ef80fa4fbe920e7e89aaa1e47
parentceff1a13084bba74b607d738c6c467365aa6a5f7
remote rename/remove: handle branch.<name>.pushRemote config values

When renaming or removing a remote with

    git remote rename X Y
    git remote remove X

Git already renames/removes any config values from

    branch.<name>.remote = X

to

    branch.<name>.remote = Y

As branch.<name>.pushRemote also names a remote, it now also renames
or removes these config values from

    branch.<name>.pushRemote = X

to

    branch.<name>.pushRemote = Y

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
t/t5505-remote.sh