| 903 | } |
| 904 | |
| 905 | static void create_promisor_file(const char *keep_name, |
| 906 | struct ref **sought, int nr_sought) |
| 907 | { |
| 908 | struct strbuf promisor_name = STRBUF_INIT; |
| 909 | int suffix_stripped; |
| 910 | |
| 911 | strbuf_addstr(&promisor_name, keep_name); |
| 912 | suffix_stripped = strbuf_strip_suffix(&promisor_name, ".keep"); |
| 913 | if (!suffix_stripped) |
| 914 | BUG("name of pack lockfile should end with .keep (was '%s')", |
| 915 | keep_name); |
| 916 | strbuf_addstr(&promisor_name, ".promisor"); |
| 917 | |
| 918 | write_promisor_file(promisor_name.buf, sought, nr_sought); |
| 919 | |
| 920 | strbuf_release(&promisor_name); |
| 921 | } |
| 922 | |
| 923 | static void parse_gitmodules_oids(int fd, struct oidset *gitmodules_oids) |
| 924 | { |
no test coverage detected