Skip to content

Commit 38124d8

Browse files
kusmagitster
authored andcommitted
builtin-fast-export.c: turn error into warning
fast-import doesn't have a syntax to support tree-objects (and some other object-types), so fast-export shouldn't handle them. However, aborting the operation is a bit drastic. This patch turns the error into a warning instead. Signed-off-by: Erik Faye-Lund <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1092f6b commit 38124d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin-fast-export.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,10 @@ static void get_tags_and_duplicates(struct object_array *pending,
378378
}
379379
break;
380380
default:
381-
die ("Unexpected object of type %s",
382-
typename(e->item->type));
381+
warning("%s: Unexpected object of type %s, skipping.",
382+
e->name,
383+
typename(e->item->type));
384+
continue;
383385
}
384386
if (commit->util)
385387
/* more than one name for the same object */

0 commit comments

Comments
 (0)