Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot spawn .git/hooks/pre-commit: No such file or directory #14063

Closed
hokran opened this issue Mar 3, 2022 · 5 comments
Closed

error: cannot spawn .git/hooks/pre-commit: No such file or directory #14063

hokran opened this issue Mar 3, 2022 · 5 comments

Comments

@hokran
Copy link

hokran commented Mar 3, 2022

Describe the bug

when click on commit button, getting below error

'error: cannot spawn .git/hooks/pre-commit: No such file or directory"

Version & OS

Windows 10 Pro

GitHub Deskotp Version 2.9.10 (x64)

Steps to reproduce the behavior

1.Open git hut desktop version
2. Changes any one file
3. Enter commit text
4. Click on Commit button

Expected behavior

Write a clear and concise description of what you expected to happen.

Actual behavior

Write a clear and concise description of what actually happened.

Screenshots

Add screenshots to help explain your problem, if applicable.

Logs

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

Additional context

Add any other context about the problem here.

@steveward
Copy link
Member

Thanks for the issue @hokran. Are you wanting to use hooks in this repository?

GitHub Desktop will run pre-commit hooks on commit if your Git repository is configured to use them. Note however that the hooks will run inside of GitHub Desktop's environment which means they won't necessarily have access to the same environment variables as you'd normally have when using the command line.

@steveward steveward added the more-info-needed The submitter needs to provide more information about the issue label Mar 3, 2022
@hokran
Copy link
Author

hokran commented Mar 4, 2022

Hi Steve, let me know what info you needed to resolve this issue.

@steveward
Copy link
Member

@hokran are you wanting to use pre-commit hooks in this repository? If not, you can remove the pre-commit hook in .git/hooks. If you are wanting to use a pre-commit hook it'd be helpful if you could share the contents of .git/hooks/pre-commit so that we could see what the issue might be there.

@hokran
Copy link
Author

hokran commented Mar 4, 2022

Hi Steve, Its working fine after removing pre-commit hook in .git/hooks. Thanks a lot for your help

@no-response no-response bot removed the more-info-needed The submitter needs to provide more information about the issue label Mar 4, 2022
@steveward
Copy link
Member

Glad to hear you were able to get things working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants