Skip to content

FileNotFoundError running outside git repository #7

@philippesamuel

Description

@philippesamuel

Running on Windows outside a git repo I got a FileNotFoundError here:

maggot/maggot/experiment.py

Lines 194 to 203 in 2f93644

def _save_git_commit_hash(self):
try:
label = subprocess.check_output(
["git", "rev-parse", "HEAD"],
stderr=subprocess.PIPE
)
except subprocess.CalledProcessError:
# skip this step if current directory is
# not a git repository
return

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions