Merge pull request #2476 from valentindavid/valentindavid/glib-fix

lib: Fix a bad call to g_file_get_child
This commit is contained in:
Colin Walters 2021-11-09 09:27:18 -05:00 committed by GitHub
commit 1a86517d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1389,7 +1389,7 @@ ostree_repo_checkout_at (OstreeRepo *self,
g_autoptr(GFile) target_dir = NULL;
if (strcmp (options->subpath, "/") != 0)
target_dir = g_file_get_child (commit_root, options->subpath);
target_dir = g_file_resolve_relative_path (commit_root, options->subpath);
else
target_dir = g_object_ref (commit_root);
g_autoptr(GFileInfo) target_info =