Add TestGitRepo constructor from master

Needed by the Polling ignores commit by message test case