| 1004 | } |
| 1005 | |
| 1006 | static int process_deepen_not(const char *line, struct oidset *deepen_not, int *deepen_rev_list) |
| 1007 | { |
| 1008 | const char *arg; |
| 1009 | if (skip_prefix(line, "deepen-not ", &arg)) { |
| 1010 | int cnt; |
| 1011 | char *ref = NULL; |
| 1012 | struct object_id oid; |
| 1013 | cnt = expand_ref(the_repository, arg, strlen(arg), &oid, &ref); |
| 1014 | if (cnt > 1) |
| 1015 | die("git upload-pack: ambiguous deepen-not: %s", line); |
| 1016 | if (cnt < 1) |
| 1017 | die("git upload-pack: deepen-not is not a ref: %s", line); |
| 1018 | oidset_insert(deepen_not, &oid); |
| 1019 | free(ref); |
| 1020 | *deepen_rev_list = 1; |
| 1021 | return 1; |
| 1022 | } |
| 1023 | return 0; |
| 1024 | } |
| 1025 | |
| 1026 | NORETURN __attribute__((format(printf,2,3))) |
| 1027 | static void send_err_and_die(struct upload_pack_data *data, |
no test coverage detected