-
-
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
git-secret-changes use of echo adds a newline #291
Comments
@BrandonCsSanders thanks for the bug report! Can you please send a PR with the fix? |
I see what's going on here. The underlying issue is that the $() construct used in So the 'right' thing to do is to |
@BrandonCsSanders I've worked up a solution with tests for this issue at #293 |
* tests and comments about 'changes' for #291 * add 'changes' tests, improve diagnostic * preserve trailing newlines in diff output * use bash trickery to preserve trailing newlines in captured text * test 'changes' on files without newlines and when called on a non-existant file * improve comments and variable names
Fixed in #293 |
What are the steps to reproduce this issue?
What happens?
git-secret changes
shows that a newline at the end of the file was removedWhat were you expecting to happen?
no changes
Any logs, error output, etc?
Should instead be
What versions of software are you using?
0.2.4
The text was updated successfully, but these errors were encountered: