Skip to content

repo: Prevent cleaning a new repository#81

Merged
lmars merged 1 commit intomasterfrom
prevent-clean-new-repo
Mar 26, 2015
Merged

repo: Prevent cleaning a new repository#81
lmars merged 1 commit intomasterfrom
prevent-clean-new-repo

Conversation

@lmars
Copy link
Copy Markdown
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
Copy Markdown
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