Skip to content

Commit

Permalink
fixup! Allow commits to mark refs as EOL, replaced by others
Browse files Browse the repository at this point in the history
  • Loading branch information
dsd committed May 22, 2017
1 parent b114b06 commit 52858b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libostree/ostree-sysroot-upgrader.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,12 @@ ostree_sysroot_upgrader_pull_one_dir (OstreeSysrootUpgrader *self,
g_free (self->origin_ref);
self->origin_ref = g_strdup(new_ref);
g_free (origin_refspec);
origin_refspec = g_strconcat (self->origin_remote, ":", new_ref, NULL);

if (self->origin_remote)
origin_refspec = g_strconcat (self->origin_remote, ":", new_ref, NULL);
else
origin_refspec = g_strdup (new_ref);

g_key_file_set_string (self->origin, "origin", "refspec", origin_refspec);
}

Expand Down

0 comments on commit 52858b5

Please sign in to comment.