def git_info():
try:<EOL><INDENT>branch = (os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or os.environ.get('<STR_LIT>')<EOL>or run_command('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL>head = {<EOL>'<STR_LIT:id>': gitlog('<STR_LIT>'),<EOL>'<STR_LIT>': gitlog('<STR_LIT>'),<EOL>'<STR_LIT>': gitlog('<STR_LIT>'),<EOL>'<STR_LIT>': gitlog('<STR_LIT>'),<EOL>'<STR_LIT>': gitlog('<STR_LIT>'),<EOL>'<STR_LIT:message>': gitlog('<STR_LIT:%s>'),<EOL>}<EOL>remotes = [{'<STR_LIT:name>': line.split()[<NUM_LIT:0>], '<STR_LIT:url>': line.split()[<NUM_LIT:1>]}<EOL>for line in run_command('<STR_LIT>', '<STR_LIT>', '<STR_LIT>').splitlines()<EOL>if '<STR_LIT>' in line]<EOL><DEDENT>except (CoverallsException, EnvironmentError) as ex:<EOL><INDENT>branch = os.environ.get('<STR_LIT>')<EOL>head = {<EOL>'<STR_LIT:id>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT:message>': os.environ.get('<STR_LIT>'),<EOL>}<EOL>remotes = [{<EOL>'<STR_LIT:name>': os.environ.get('<STR_LIT>'),<EOL>'<STR_LIT:url>': os.environ.get('<STR_LIT>'),<EOL>}]<EOL>if not all(head.values()):<EOL><INDENT>log.warning('<STR_LIT>'<EOL>'<STR_LIT>',<EOL>exc_info=ex)<EOL>return {}<EOL><DEDENT><DEDENT>return {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': branch,<EOL>'<STR_LIT>': head,<EOL>'<STR_LIT>': remotes,<EOL>},<EOL>}<EOL>
A hash of Git data that can be used to display more information to users.

Example:
    "git": {
        "head": {
            "id": "5e837ce92220be64821128a70f6093f836dd2c05",
            "author_name": "Wil Gieseler",
            "author_email": "wil@example.com",
            "committer_name": "Wil Gieseler",
            "committer_email": "wil@example.com",
            "message": "depend on simplecov >= 0.7"
        },
        "branch": "master",
        "remotes": [{
            "name": "origin",
            "url": "https://github.com/lemurheavy/coveralls-ruby.git"
        }]
    }