Open StianOvrevage opened 6 years ago
I would also like to see functionality with GitHub Desktop windows app.
In-case any other git-bash users come across this problem, save a copy of git-secrets in
C:\Program Files\Git\usr\bin
.
Git scans $PATH for any executable with the naming scheme git-*
and will treat them as git sub-commands.
@StianOvrevage Could you try outputting %PATH%
during a git invocation from Github Desktop to confirm whether C:\Program Files\Git\cmd
is on tis path?
I have tried (and tried, and tried) getting git-secrets to work with GitHub Desktop for Windows without luck.
I have put the git-secrets bash script in one location that is now available within the git shell launched from GitHub Desktop (it's also in %PATH%):
Running
git secrets
in cmd, git-bash AND powershell manually all gives me the "usage" output.However, trying to commit with GitHub Desktop gives me
I get the option to view error log and also "Open Git Shell". When I do Open Git Shell and execute
git secrets
, that works and gives me the "usage" output again.Manually running the git.exe file in question with "secrets" also works:
Have tried setting Default shell in GitHub Desktop to Cmd, Git Bash and Powershell. They all fail.