unable to use post-commit hook if it includes 'git push' command #8847
Labels
bug
Confirmed bugs or reports that are very likely to be bugs
priority-3
Bugs that affect small number of users and/or relatively cosmetic in nature
Projects
Describe the bug
What I am trying to do is having an automated
git push
after a commit is done.The issue is when a
post-commit
hook includesgit push
command, the application's commit process gets stuck.Version & OS
Github Desktop: version 2.2.4
OS: Windows 10 Version 1903
Steps to reproduce the behavior
Expected behavior
Commits and pushes the commit automatically.
Doing a commit from git bash or vs code will run the hook without a problem.
Actual behavior
the commit process gets stuck.
The commit does happen, but the hook action doesn't, and the commit button doesn't revert back to the non-blocked "in progress" state.
Logs
Additional context
redirecting the script to run a python script would help getting certain git commands to run:
pushrepo.py:
output:
however running
git push
would once again produce the same behavior, with this output:The text was updated successfully, but these errors were encountered: