From: Philip Withnall Date: Wed, 7 Jun 2017 13:29:55 +0000 (+0100) Subject: lib/pull: Fix construction of a refspec to use the correct separator X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~36^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=21eec96bfdc553fc77f842776758c3dfe61e0185;p=ostree.git lib/pull: Fix construction of a refspec to use the correct separator This code looks like it was supposed to build a refspec, but it used a slash as a separator rather than a colon. The following code does recover by supporting prefix matching with slashes, but it seems like this was perhaps not the intention. Signed-off-by: Philip Withnall Closes: #912 Approved by: cgwalters --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index ed782cd5..7f6d0123 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -3392,7 +3392,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, g_autofree char *original_rev = NULL; if (pull_data->remote_name) - remote_ref = g_strdup_printf ("%s/%s", pull_data->remote_name, ref); + remote_ref = g_strdup_printf ("%s:%s", pull_data->remote_name, ref); else remote_ref = g_strdup (ref);