Virtualmin Git post-recieve hook is not getting executed(triggered) if new commit is pushed to the repository via ssh

OS type and version Ubuntu 20.04.6
Webmin version 2.111
Virtualmin version 7.10
Related packages Git

I have enabled git on a domain and have created a git repository for the same, now I am hosting my remote repository on gitlab and have enabled CICD Pipeline on gitlab as, as when a PR is merged on the master branch, it builds an artifact of the latest code and push it to the bare git repository on a domain hosted on virtualmin, then i have added a post-recieve hook to push the latest code to /public_html/ directory on the domain server so that the latest code is deployed to the server.

The problem i am facing is something on the virtualmin is not triggering the git post-recieve hooks to execute, unable to identify the issue, my post recieve hook is executable so thats not the problem. If i manually try to run that hook it does executes and creates log.

Can any help identify what might be causing this?