#753771 calypso: removing HOME from env causes git commit to fail

#753771#5
Date:
2014-07-04 20:24:39 UTC
From:
To:
Package: calypso
Version: 1.4

Here, completely clearing the environment for the git commits in
webdav.py causes git to fail with the typical "please tell me who you
are" error.

Restoring HOME when available like this:

    def git_commit(self, context):
        args = ["git", "commit", "--allow-empty"]
        env = {}
        home = os.environ.get('HOME')
        if home:
            env['HOME'] = home
        ...

fixes the problem for "calypso --import private/rlb foo.ics".

Thanks