Skip to content

Commit

Permalink
fixup! repo: Add a "force copy" flag to checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Apr 24, 2017
1 parent 8c0d97d commit aba5582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libostree/ostree-repo-checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@ ostree_repo_checkout_at (OstreeRepo *self,
if (ostree_repo_get_mode (self) == OSTREE_REPO_MODE_BARE_USER_ONLY)
options->mode = OSTREE_REPO_CHECKOUT_MODE_USER;

g_return_val_if_fail (!(options->force_copy && options->no_copy_fallback), FALSE);

g_autoptr(GFile) commit_root = (GFile*) _ostree_repo_file_new_for_commit (self, commit, error);
if (!commit_root)
return FALSE;
Expand Down

0 comments on commit aba5582

Please sign in to comment.