show: Fix segfault if we can't find an object

We need to use the original rev here.
This commit is contained in:
Colin Walters 2014-04-27 16:31:50 -04:00
parent 5346e0615b
commit 021c4ee9d3

View File

@ -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;