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

repo: Prevent cleaning a new repository #81

Merged
merged 1 commit into from
Mar 26, 2015
Merged

Conversation

lmars
Copy link
Contributor

@lmars lmars commented Mar 26, 2015

After creating keys in a new repository, repo.Clean() would remove the staged root.json, rendering the keys unusable.

Given Clean is only useful to reset the state to what is committed, it only makes sense to call it when something has been committed already, so this change prevents cleaning a new repository.

Fixes #78.

After creating keys in a new repository, repo.Clean would remove the
staged root.json, rendering the keys unusable.

Given Clean is only useful to reset the state to what is committed, it
only makes sense to call it when something has been committed already,
so this change prevents cleaning a new repository.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
@titanous
Copy link
Contributor

LGTM

lmars added a commit that referenced this pull request Mar 26, 2015
repo: Prevent cleaning a new repository
@lmars lmars merged commit 0fcbe88 into master Mar 26, 2015
@lmars lmars deleted the prevent-clean-new-repo branch March 26, 2015 22:12
rdimitrov pushed a commit to rdimitrov/go-tuf that referenced this pull request Jan 25, 2024
…eframework#81)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.15.0.
- [Commits](golang/crypto@v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
rdimitrov pushed a commit that referenced this pull request Jan 29, 2024
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.15.0.
- [Commits](golang/crypto@v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

tuf clean can corrupt repo
2 participants