pull-local: Fix regression with absolute paths
Don't add cwd unless the path is relative.
This commit is contained in:
parent
9cc9804195
commit
64363c26ac
|
|
@ -70,7 +70,11 @@ ostree_builtin_pull_local (int argc, char **argv, GCancellable *cancellable, GEr
|
||||||
|
|
||||||
src_repo_arg = argv[1];
|
src_repo_arg = argv[1];
|
||||||
|
|
||||||
{ gs_free char *cwd = g_get_current_dir ();
|
if (src_repo_arg[0] == '/')
|
||||||
|
src_repo_uri = g_strconcat ("file://", src_repo_arg, NULL);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gs_free char *cwd = g_get_current_dir ();
|
||||||
src_repo_uri = g_strconcat ("file://", cwd, "/", src_repo_arg, NULL);
|
src_repo_uri = g_strconcat ("file://", cwd, "/", src_repo_arg, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue