commit b0dd8d2728f3fece5d4c5a57511203e0f9d56ed5 from: Stefan Sperling date: Thu Jun 16 11:40:20 2022 UTC fix a recent regression where tog segfaults if Ctrl+l is used in the log view commit - 29688b02fe263635f239dd48dd3715577def8352 commit + b0dd8d2728f3fece5d4c5a57511203e0f9d56ed5 blob - a973c4a5aef87ce408322a2aedaa71ee09f7b82d blob + 61e731b74f838cf2b8072f3655e745a29b6c673f --- tog/tog.c +++ tog/tog.c @@ -2781,6 +2781,11 @@ input_log_view(struct tog_view **new_view, struct tog_ } else /* 'B' */ s->log_branches = !s->log_branches; + if (s->thread_args.pack_fds == NULL) { + err = got_repo_pack_fds_open(&s->thread_args.pack_fds); + if (err) + return err; + } err = got_repo_open(&s->thread_args.repo, got_repo_get_path(s->repo), NULL, s->thread_args.pack_fds);