Fix GitRepository initialization