Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
deploy: Always use merge commit
Browse files Browse the repository at this point in the history
I don't recall now the rationale for the previous code; if
we're using this path we always want to be in a container-native
mode.  Currently the "unpack to pure ostree commit" gets triggered
if one uses this on a container image created via raw
`ostree container encapsulate`.

Anyone who wants the prior behavior should instead unencapsulate
and deploy the underlying commit.
  • Loading branch information
cgwalters committed Oct 20, 2023
1 parent d70a9c9 commit 0d8c7ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/container/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub async fn deploy(
imp.import(prep).await?
}
};
let commit = state.get_commit();
let commit = state.merge_commit.as_str();
let origin = glib::KeyFile::new();
let target_imgref = options.target_imgref.unwrap_or(imgref);
origin.set_string("origin", ORIGIN_CONTAINER, &target_imgref.to_string());
Expand Down

0 comments on commit 0d8c7ea

Please sign in to comment.