Merge branch 'maint'
* maint: merge-recursive: do not return NULL only to cause segfault retry request without query when info/refs?query fails
This commit is contained in:
@ -202,14 +202,14 @@ struct tree *write_tree_from_memory(struct merge_options *o)
|
||||
|
||||
if (unmerged_cache()) {
|
||||
int i;
|
||||
output(o, 0, "There are unmerged index entries:");
|
||||
fprintf(stderr, "BUG: There are unmerged index entries:\n");
|
||||
for (i = 0; i < active_nr; i++) {
|
||||
struct cache_entry *ce = active_cache[i];
|
||||
if (ce_stage(ce))
|
||||
output(o, 0, "%d %.*s", ce_stage(ce),
|
||||
(int)ce_namelen(ce), ce->name);
|
||||
fprintf(stderr, "BUG: %d %.*s", ce_stage(ce),
|
||||
(int)ce_namelen(ce), ce->name);
|
||||
}
|
||||
return NULL;
|
||||
die("Bug in merge-recursive.c");
|
||||
}
|
||||
|
||||
if (!active_cache_tree)
|
||||
|
||||
Reference in New Issue
Block a user