Git helper fixture
Add cwd safety, only if it's defined in the file object set it.
Content could be undefined in a post.
Test the git helper.