pull: Use GNU coding style

This commit is contained in:
Dan Nicholson 2020-12-18 09:13:38 -07:00
parent 39aa419dfa
commit 92a484d278
1 changed files with 13 additions and 11 deletions

View File

@ -1620,17 +1620,19 @@ scan_commit_object (OtPullData *pull_data,
if (!ostree_repo_load_commit (pull_data->repo, checksum, &commit, &commitstate, error)) if (!ostree_repo_load_commit (pull_data->repo, checksum, &commit, &commitstate, error))
return FALSE; return FALSE;
if (!pull_data->disable_verify_bindings) { if (!pull_data->disable_verify_bindings)
/* If ref is non-NULL then the commit we fetched was requested through the {
* branch, otherwise we requested a commit checksum without specifying a branch. /* If ref is non-NULL then the commit we fetched was requested through
*/ * the branch, otherwise we requested a commit checksum without
g_autofree char *remote_collection_id = NULL; * specifying a branch.
remote_collection_id = get_remote_repo_collection_id (pull_data); */
if (!_ostree_repo_verify_bindings (remote_collection_id, g_autofree char *remote_collection_id = NULL;
(ref != NULL) ? ref->ref_name : NULL, remote_collection_id = get_remote_repo_collection_id (pull_data);
commit, error)) if (!_ostree_repo_verify_bindings (remote_collection_id,
return glnx_prefix_error (error, "Commit %s", checksum); (ref != NULL) ? ref->ref_name : NULL,
} commit, error))
return glnx_prefix_error (error, "Commit %s", checksum);
}
guint64 new_ts = ostree_commit_get_timestamp (commit); guint64 new_ts = ostree_commit_get_timestamp (commit);
if (pull_data->timestamp_check) if (pull_data->timestamp_check)