Skip to content

Frequent # fatal: not a git repository (or any of the parent directories): .git messages. #34

@JSKenyon

Description

@JSKenyon

I believe that these messages are triggered by this code:

result=subprocess.check_output('git describe --tags', shell=True,universal_newlines=True).rstrip()

I would suggest checking for the existence of .git before attempting to run the subprocess command. When installed in an image, it will not appear as a github repository (or if the user pip installs directly from github).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions