tg export: Fix exporting remote-based branches