* This loop iterator breaks the loop with nonzero return code on the * first successful unbundling of a bundle. */
| 811 | * first successful unbundling of a bundle. |
| 812 | */ |
| 813 | static int attempt_unbundle(struct remote_bundle_info *info, void *data) |
| 814 | { |
| 815 | struct repository *r = data; |
| 816 | |
| 817 | if (!info->file || info->unbundled) |
| 818 | return 0; |
| 819 | |
| 820 | if (!unbundle_from_file(r, info->file)) { |
| 821 | info->unbundled = 1; |
| 822 | return 1; |
| 823 | } |
| 824 | |
| 825 | return 0; |
| 826 | } |
| 827 | |
| 828 | static int unbundle_all_bundles(struct repository *r, |
| 829 | struct bundle_list *list) |
nothing calls this directly
no test coverage detected