Triggering a git command action

I want to trigger pulling a git repository when the repository has a new comit.

I’m 99% certain I can get the trigger working.

The git pull has me defeated! I thought I could do it using an execute node with

git -C ~/.n8n/data/website_org/ pull

But git doesn’t recognise this as a git repo. But it is!

“fatal: not a git repository (or any of the parent directories): .git”

I’m using n8n inside a docker.

Anyone doing similar?

Should I just switch to a cronjob that does a pull every 15 minutes?