awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

redirect error output to stderr #58

Closed mbacchi closed 6 years ago

mbacchi commented 6 years ago

Stderr should be separated from stdout on error.

I'm opening a PR to make it do this properly:

`[mbacchi@hostname git-secrets]$ ./git-secrets --scan -r . 2>err 1>out [mbacchi@hostname git-secrets]$ cat out [mbacchi@hostname git-secrets]$ cat err ./creds:1:AKIAISITMFSJISKWFAJQ

[ERROR] Matched one or more prohibited patterns

Possible mitigations: