The git module crashes if a large commit was done

I have a repo that contains code libraries—thousands of files. It was causing Ansible’s git module to crash.

**CAUSE & SUGGESTED FIX**

The git module uses `git show --abbrev-commit` to sample the current version of the repo. This is inefficient, because it outputs the entire diff of the commit.

If the commit is large enough, it will cause Ansible’s git module to crash and the task to fail.

I’ve fixed this by having the git module only read the first line of `git show` output. (It only uses the first line anyway.)