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

fix behaviour of key rename to same name #5465

Merged
merged 1 commit into from
Sep 14, 2018
Merged

fix behaviour of key rename to same name #5465

merged 1 commit into from
Sep 14, 2018

Conversation

rob-deutsch
Copy link
Contributor

Renaming a key to the same name always succeeds regardless of force flag. Fixed bug whereby renaming to same name (with --force) would delete the key by accident

fixed #5450

License: MIT
Signed-off-by: Rob Deutsch [email protected]

Renaming a key to the same name always succeeds regardless of force flag. Fixed bug whereby renaming to same name (with --force) would delete the key by accident

fixed #5450

License: MIT
Signed-off-by: Rob Deutsch <[email protected]>
@Stebalien Stebalien merged commit e4e3504 into ipfs:master Sep 14, 2018
t.Errorf("returned key should be called 'foo', got '%s'", k.Name())
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ tests!

@rob-deutsch rob-deutsch deleted the fix/5450 branch October 4, 2018 06:17
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.

Key renaming to same name causes key to be deleted
2 participants