thoughtworks / talisman

Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
https://thoughtworks.github.io/talisman/
MIT License
1.87k stars 241 forks source link

talisman: no such file or directory (Visual studio, windows) #411

Open tamazbagdavadze opened 1 year ago

tamazbagdavadze commented 1 year ago

I installed talisman in my project, but when I try to commit from visual studio, I get error:

.git/hooks/pre-commit: line 6: /c/src/[project name]/.git/hooks/bin/talisman: No such file or directory

when I try to commit from cmd, it works.

To Reproduce Steps to reproduce the behavior:

  1. create sample project with pre commit hook
  2. try to commit from visual studio

Desktop (please complete the following information):