-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Conversation
src/commands/git_secret_hide.sh
Outdated
|
||
if [[ ! -z "$verbose" ]]; then | ||
echo | ||
fi |
There was a problem hiding this comment.
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.
tests/test_hide.bats
Outdated
@@ -31,12 +31,19 @@ function teardown { | |||
} | |||
|
|||
|
|||
@test "run 'hide' with params" { | |||
@test "run 'hide' with params -c" { |
There was a problem hiding this comment.
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
tests/test_hide.bats
Outdated
run git secret hide -v -c | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
|
||
@test "run 'hide' with params -d" { |
There was a problem hiding this comment.
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"
Thanks for your idea and implementation! I appreciate it. Nice work! |
Thanks for the suggestions, I've force pushed the fixes. |
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).