[#159481] Fix branch export to recursively include children