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

[Bug] On Windows 10: "git-secrets: line 255: [: too many arguments" #139

Open nhanphanminh opened 5 years ago

nhanphanminh commented 5 years ago

Problem: On Windows 10, when run the command "git commit -m ", git-secrets will throw an error message: "git-secrets: line 255: [: too many arguments" Reproduce:

  1. Create new account with username have a space (ex: this is my account).
  2. Install git-secrets to that account (please refer the READ.ME of this repository for more details)
  3. The error message will be shown anytime we run git commit
sparr commented 1 year ago

This is related to #78 and may have the same solutions, to iterate over files instead of expanding the full list of files on the command line.