pull-local: Fix crasher in previous commit when not connected to tty
This commit is contained in:
parent
aa5e11af12
commit
42e3f1f4ab
|
|
@ -277,14 +277,19 @@ ostree_builtin_pull_local (int argc, char **argv, GFile *repo_path, GError **err
|
|||
g_timeout_add_seconds (1, idle_print_status, data);
|
||||
idle_print_status (data);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_print ("Copying %d objects...\n", data->n_objects_to_check);
|
||||
}
|
||||
|
||||
g_main_loop_run (data->loop);
|
||||
|
||||
idle_print_status (data);
|
||||
|
||||
if (console)
|
||||
{
|
||||
idle_print_status (data);
|
||||
gs_console_end_status_line (console, NULL, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
if (!ostree_repo_commit_transaction (data->dest_repo, NULL, error))
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue