remote: Fix bogus make_branch() call in configuration reader.
commit896c0535afe2f00683f7d4e8171fad7ec156f16f
authorJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2007 04:34:56 +0000 (14 20:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2007 04:34:56 +0000 (14 20:34 -0800)
treeea5c7c05370fe04b1ecd9917290ed55eb082ac83
parent1eb1e9eea480059d4fba171e74a4375b8191e3f3
remote: Fix bogus make_branch() call in configuration reader.

The configuration reader to enumerate branches that have configuration
data were not careful enough and failed to skip "branch.<variable>"
entries (e.g. branch.autosetupmerge).  This resulted in bogus attempt to
allocate huge memory.

Noticed by David Miller.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c