forked from Mirrors/flatpak-builder
ls-remote: Remove unnecessary code
Summary refs never have a remote prefixtingping/wmclass
parent
e76da99cdc
commit
f2c9663169
|
@ -82,19 +82,11 @@ xdg_app_builtin_ls_remote (int argc, char **argv, GCancellable *cancellable, GEr
|
|||
g_hash_table_iter_init (&iter, refs);
|
||||
while (g_hash_table_iter_next (&iter, &key, &value))
|
||||
{
|
||||
const char *refspec = key;
|
||||
const char *ref = key;
|
||||
const char *checksum = value;
|
||||
g_autofree char *remote = NULL;
|
||||
g_autofree char *ref = NULL;
|
||||
char *name = NULL;
|
||||
char *p;
|
||||
|
||||
if (!ostree_parse_refspec (refspec, &remote, &ref, error))
|
||||
return FALSE;
|
||||
|
||||
if (remote != NULL && !g_str_equal (remote, repository))
|
||||
continue;
|
||||
|
||||
if (opt_only_updates)
|
||||
{
|
||||
g_autofree char *deployed = NULL;
|
||||
|
|
Loading…
Reference in New Issue