show: Fix segfault if we can't find an object
We need to use the original rev here.
This commit is contained in:
1 parent
5346e0615b
commit
021c4ee9d3
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user