Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: Don’t commit arbitrary files into the ostree-metadata branch #56

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

pwithnall
Copy link
Contributor

When building the ostree-metadata branch (which only happens when
configured with --enable-p2p), we are supposed to create empty commits
which contain only metadata. However, the code to do this was wrong, and
was instead pulling in all the files from the current working directory
and committing them.

Fix that code to actually create an empty commit.

This could have been a fairly serious bug were it not for the fact that
nobody’s using this code because it’s all experimental.

Spotted as part of ostreedev/ostree#1158.

Signed-off-by: Philip Withnall withnall@endlessm.com

Closes: #1066
Approved by: alexlarsson


This isn’t attached to a particular task; just a recent upstream fix which I really think we ought to have.

When building the ostree-metadata branch (which only happens when
configured with --enable-p2p), we are supposed to create empty commits
which contain only metadata. However, the code to do this was wrong, and
was instead pulling in all the files from the current working directory
and committing them.

Fix that code to actually create an empty commit.

This could have been a fairly serious bug were it not for the fact that
nobody’s using this code because it’s all experimental.

Spotted as part of ostreedev/ostree#1158.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1066
Approved by: alexlarsson
@pwithnall pwithnall self-assigned this Oct 4, 2017
@mwleeds mwleeds merged commit 4df0952 into master Oct 4, 2017
@mwleeds mwleeds deleted the ostree-metadata-hygiene branch October 4, 2017 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants