]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5505-remote.sh
remote rename: demonstrate a bogus "remote exists" bug
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 19 Jan 2017 21:19:58 +0000 (22:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Jan 2017 22:04:16 +0000 (14:04 -0800)
commitaf5bacf471825662f8eeda932cfabd6c47634434
tree444c38da7ec6f93b958575f9e8c6aaa1f2dc44ff
parentc3808ca6982b0ad7ee9b87eca9b50b9a24ec08b0
remote rename: demonstrate a bogus "remote exists" bug

Some users like to set `remote.origin.prune = true` in their ~/.gitconfig
so that all of their repositories use that default.

However, our code is ill-prepared for this, mistaking that single entry to
mean that there is already a remote of the name "origin", even if there is
not.

This patch adds a test case demonstrating this issue.

Reported by Andrew Arnott.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5505-remote.sh