Hello,
I am running a Windows 11 laptop that has had no problem with Bitbucket for 7 months. I frequently push to the master branch of a repo that I own, for which I have Admin access. I began to get the following error:
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to [MY_REPO_URL]
It does not resemble other issues on this error here solved because...
- It does not involve XenServer
- The same error appears when I try to push the smallest commit possible (not exceeding buffer size)
I have tried the following to debug:
- Check global git config in case my user logged off --> credentials correct
- git stash, git reset, git fetch, git pull --> same error for push
- Delete pre-receive hook for repo --> no webhooks listed in repo settings
- Clone repo again and attempt new push --> same error
- Disconnect all antivirus settings on device --> same error for push
- Allow commit history rewrite on repo --> same error for push
- Try a push to another repo on the same workspace --> same error
As precedent...
- ESET Endpoint Security was installed on my device a week before this happened and I had been able to push correctly since.
- Right before I started getting this push error, my device seemed to "forget" python's location. I was running a .ipynb on VSCode, closed it, reopened it 20 minutes later and VSCode claimed I did not have Python installed on my computer.
- Python still seemed to be in PATH, since python commands worked with cmd from any location.
- I ran a simple .py file for test but had to manually set the location for python.exe, after which the file ran perfectly.
- VSCode still could not find a Python interpreter, but it had solved when I re-opened VSCode after the weekend.
Could anybody help me get across the pre-receive hooks for the workspace I use? Big thanks in advance!