I just added an event listener to the repository, without wrapping it in a state change listener.
git.repositories[0].onDidCommit(() => { console.log("committed") })
And it works. Check your VS Code version, you need above 1.86.