-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fixes for 'changes' and trailing newlines, for #291 #293
Fixes for 'changes' and trailing newlines, for #291 #293
Conversation
also a fix for OSX
[tests/test_changes.bats]
using BATS_TEST_DESCRIPTION env var [tests/test_changes.bats, tests/test_expiration.bats, tests/test_hide.bats, tests/test_whoknows.bats]
@sobolevn look at this output in (for example) https://travis-ci.org/sobolevn/git-secret/jobs/473335843
Should there be only 2 lines output instead of 3? |
@joshrabinowitz yes, looks like so. |
[src/commands/git_secret_changes.sh]
[tests/_test_base.bash, tests/test_cat.bats]
[src/commands/git_secret_changes.sh]
I figured out the issue (but not the solution) to #291.
|
[src/commands/git_secret_changes.sh, tests/_test_base.bash]
[src/commands/git_secret_changes.sh, tests/test_changes.bats]
[src/commands/git_secret_changes.sh]
also test 'changes' when called on a non-existant file [src/commands/git_secret_changes.sh, tests/_test_base.bash, tests/test_changes.bats]
[src/commands/git_secret_changes.sh, tests/test_cat.bats]
@sobolevn This PR makes |
[src/commands/git_secret_changes.sh]
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.
Looks good, but there is still some debug code inside.
👍
p.s. Happy New Year 🌲
[src/commands/git_secret_changes.sh, tests/test_changes.bats]
Thanks for the quick review @sobolevn ! And Happy New Year to you as well. |
@sobolevn @BrandonCsSanders I think issue #291 & PR #292 might not be relevant for git-secret master.I cannot reproduce #291 in my tests with git-secret master, (see the test "run 'changes' with no file changed" in tests/test_changes.bats )Also I did some experimenting with #292 and master and I'm not sure it improves things.(See new comments in src/commands/git_secret_changes.sh]
Am I missing something? Is there an issue with git-secret changes in master?Edit: This fixes bugs in 'git secret changes' related to trailing newlines in file contents.
For details see the comments in #291