Merge pull request #2549 from ostreedev/mwleeds/fix-partial-delta-fetches

Fix marking static delta commits as partial
This commit is contained in:
Colin Walters authored and GitHub committed 2022-02-21 14:23:39 -05:00
commit 4304505af8
2 files changed
+3 -1

No files matched your search

+3
View File
@@ -2244,6 +2244,9 @@ process_one_static_delta (OtPullData *pull_data,
ref, cancellable, error))
return FALSE;
if (!ostree_repo_mark_commit_partial (pull_data->repo, to_revision, TRUE, error))
return FALSE;
if (detached_data && !ostree_repo_write_commit_detached_metadata (pull_data->repo,
to_revision,
detached_data,
-1
View File
@@ -396,7 +396,6 @@ _ostree_repo_resolve_rev_internal (OstreeRepo *self,
{
ret_rev = g_strdup (refspec);
}
else if (!ostree_repo_resolve_partial_checksum (self, refspec, &ret_rev, error))
return FALSE;