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

Add -d option to hide command to remove unencrypted files. #62

Merged
merged 1 commit into from
Feb 11, 2017
Merged

Add -d option to hide command to remove unencrypted files. #62

merged 1 commit into from
Feb 11, 2017

Conversation

timchurchard
Copy link
Contributor

This adds an option -d to the git secret hide command to remove the unencrypted files after encryption. I often forget to git clean -fX and leave the unencrypted files in my repo.

Tested on Ubuntu 16.10 with bash (4.3.36) & zsh (5.2) & shellcheck (0.4.4).


if [[ ! -z "$verbose" ]]; then
echo
fi
Copy link
Owner

Choose a reason for hiding this comment

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

One space is missing here. Indentation is broken.

@@ -31,12 +31,19 @@ function teardown {
}


@test "run 'hide' with params" {
@test "run 'hide' with params -c" {
Copy link
Owner

Choose a reason for hiding this comment

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

Could you please rename these test to: "run 'hide' with -c param" and

run git secret hide -v -c
[ "$status" -eq 0 ]
}


@test "run 'hide' with params -d" {
Copy link
Owner

Choose a reason for hiding this comment

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

"run 'hide' with -d param"

@sobolevn
Copy link
Owner

Thanks for your idea and implementation! I appreciate it.
Could you please fix two minor problems?

Nice work!

@timchurchard
Copy link
Contributor Author

Thanks for the suggestions, I've force pushed the fixes.

@sobolevn sobolevn merged commit fa7837a into sobolevn:develop Feb 11, 2017
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