Don't crash fast-import if no branch log was requested.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>maint
parent
5fced8dc6f
commit
08d7e892a7
|
|
@ -1715,7 +1715,8 @@ int main(int argc, const char **argv)
|
||||||
dump_branches();
|
dump_branches();
|
||||||
dump_tags();
|
dump_tags();
|
||||||
dump_marks();
|
dump_marks();
|
||||||
fclose(branch_log);
|
if (branch_log)
|
||||||
|
fclose(branch_log);
|
||||||
|
|
||||||
fprintf(stderr, "%s statistics:\n", argv[0]);
|
fprintf(stderr, "%s statistics:\n", argv[0]);
|
||||||
fprintf(stderr, "---------------------------------------------------\n");
|
fprintf(stderr, "---------------------------------------------------\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue