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
I added a very simple git hook that would run before every commit:
#!/bin/bashecho"Pulling ..."
git pull
This hook is located in the .git/hooks/ folder and named pre-commit as an executable. Though when I try to commit in GitHub desktop the program freezes and does not commit.
The GitHub desktop GUI is opened using my Windows environment and I added the folder location using the \\wsl$\Ubuntu-20.04\home\... path. I am also in my GitHub enterprise account.
Version & OS
GitHub Desktop version: Version 2.7.2
Windows 10: 10.0.19042 Build 19042
The repository is located in a WSL2 environment in Ubuntu 20.04.2 LTS.
Steps to reproduce the behavior
In a WSL environment create a git repository.
Create a pre-commit file that run git pull
In your Windows environment open GitHub desktop
Select Add local repository
Navigate to the WSL location of the folder (\\wsl$\Ubuntu-20.04\home\... )
Commit
Expected behavior
GitHub desktop should, when I press commit just run the pre-commit script and then just commit like it normally does.
Actual behavior
GitHub desktop just freezes and has the commit sign just keep on turning.
Describe the bug
I added a very simple git hook that would run before every commit:
This hook is located in the .git/hooks/ folder and named pre-commit as an executable. Though when I try to commit in GitHub desktop the program freezes and does not commit.
The GitHub desktop GUI is opened using my Windows environment and I added the folder location using the
\\wsl$\Ubuntu-20.04\home\...
path. I am also in my GitHub enterprise account.Version & OS
GitHub Desktop version: Version 2.7.2
Windows 10: 10.0.19042 Build 19042
The repository is located in a WSL2 environment in Ubuntu 20.04.2 LTS.
Steps to reproduce the behavior
git pull
Add local repository
\\wsl$\Ubuntu-20.04\home\...
)Expected behavior
GitHub desktop should, when I press commit just run the pre-commit script and then just commit like it normally does.
Actual behavior
GitHub desktop just freezes and has the commit sign just keep on turning.
Screenshots
Logs
The text was updated successfully, but these errors were encountered: