mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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 <withnall@endlessm.com> Closes: #912 Approved by: cgwalters
This commit is contained in:
parent
7159bed8e1
commit
21eec96bfd
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user