You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project we have a parent folder, project and then a child folder Project.Api that houses the actual C# project files.
I can install the tool as described in the documentation but when I run dotnet husky install from the Project.Api folder I get the following output.
.git can't be found (see https://alirezanet.github.io/Husky.Net/guide/getting-started)
Git hooks installation failed
The .git folder is in the parent project folder, so I guess that makes sense. If I change directories to the parent folder and try running it again, I get,
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-husky does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
I attempted to install Husky globally and see if that eliminates this problem, but the output was the same afterwards.
I realize this might not be a bug and it might just be me using it in a way that was not intended. Any direction in how I could resolve this would be helpful.
Steps to reproduce
Create a new dotnet project
Put the new dotnet project inside a parent folder
Git init inside the parent folder
Attempt to install husky/run husky install
The text was updated successfully, but these errors were encountered:
Hi @mcaubrey,
I think You have checked out the Csharper library documentation and it might not be up-to-date, try Husky.Net documentation.
you missed the first important step in installation which is cd <Your project/solution root directory>.
also for attaching husky to your project the recommended way is use the attach command, more info here.
Husky will install in your repository, not your project, so you must install it from your parent folder.
Version
v0.5.2
Details
In my project we have a parent folder,
project
and then a child folderProject.Api
that houses the actual C# project files.I can install the tool as described in the documentation but when I run
dotnet husky install
from theProject.Api
folder I get the following output.The
.git
folder is in the parentproject
folder, so I guess that makes sense. If I change directories to the parent folder and try running it again, I get,I attempted to install Husky globally and see if that eliminates this problem, but the output was the same afterwards.
I realize this might not be a bug and it might just be me using it in a way that was not intended. Any direction in how I could resolve this would be helpful.
Steps to reproduce
The text was updated successfully, but these errors were encountered: