summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-pull.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libostree/ostree-repo-pull.c')
-rw-r--r--src/libostree/ostree-repo-pull.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index e8c948aa..c63bdc4a 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -4117,8 +4117,8 @@ ostree_repo_pull_with_options (OstreeRepo *self,
*/
if (g_str_equal (first_scheme, "file") && !pull_data->require_static_deltas)
{
- g_autofree char *path = _ostree_fetcher_uri_get_path (first_uri);
- g_autoptr(GFile) remote_repo_path = g_file_new_for_path (path);
+ g_autofree char *uri = _ostree_fetcher_uri_to_string (first_uri);
+ g_autoptr(GFile) remote_repo_path = g_file_new_for_uri (uri);
pull_data->remote_repo_local = ostree_repo_new (remote_repo_path);
if (!ostree_repo_open (pull_data->remote_repo_local, cancellable, error))
goto out;