Don't crash fast-import if no branch log was requested.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
@ -1715,6 +1715,7 @@ int main(int argc, const char **argv)
|
|||||||
dump_branches();
|
dump_branches();
|
||||||
dump_tags();
|
dump_tags();
|
||||||
dump_marks();
|
dump_marks();
|
||||||
|
if (branch_log)
|
||||||
fclose(branch_log);
|
fclose(branch_log);
|
||||||
|
|
||||||
fprintf(stderr, "%s statistics:\n", argv[0]);
|
fprintf(stderr, "%s statistics:\n", argv[0]);
|
||||||
|
Reference in New Issue
Block a user