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;
|
gs_unref_variant GVariant *xattrs = NULL;
|
||||||
GFileType filetype;
|
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))
|
cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue