mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-21 02:50:37 +03:00
show: Fix segfault if we can't find an object
We need to use the original rev here.
This commit is contained in:
parent
5346e0615b
commit
021c4ee9d3
@ -269,7 +269,7 @@ ostree_builtin_show (int argc, char **argv, OstreeRepo *repo, GCancellable *canc
|
||||
gs_unref_variant GVariant *xattrs = NULL;
|
||||
GFileType filetype;
|
||||
|
||||
if (!ostree_repo_load_file (repo, resolved_rev, NULL, &finfo, &xattrs,
|
||||
if (!ostree_repo_load_file (repo, rev, NULL, &finfo, &xattrs,
|
||||
cancellable, error))
|
||||
goto out;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user