mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-16 10:50:43 +03:00
status: Don't crash if we deployed a local refspec
In the case we built a local tree, we'd pass `NULL` as a remote down to the GPG checking code. Noticed this in the test suite.
This commit is contained in:
parent
f08cb802ea
commit
6d84321a16
@ -74,7 +74,8 @@ deployment_get_gpg_verify (OstreeDeployment *deployment,
|
||||
if (!ostree_parse_refspec (refspec, &remote, NULL, NULL))
|
||||
goto out;
|
||||
|
||||
(void) ostree_repo_remote_get_gpg_verify (repo, remote, &gpg_verify, NULL);
|
||||
if (remote)
|
||||
(void) ostree_repo_remote_get_gpg_verify (repo, remote, &gpg_verify, NULL);
|
||||
|
||||
out:
|
||||
return gpg_verify;
|
||||
|
Loading…
x
Reference in New Issue
Block a user