Skip to content

git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[Errno 20] Not a directory') for 2.1.15 #997

@caserffer

Description

@caserffer

my code is
image
image
and my error is:

Traceback (most recent call last):
  File "PrecisionDiff.py", line 250, in <module>
    obj.pares_from_git_log()
  File "PrecisionDiff.py", line 74, in pares_from_git_log
    self.REPO_EXECUTE.execute("git checkout master")
  File "/usr/local/lib/python2.7/dist-packages/git/cmd.py", line 738, in execute
    raise GitCommandNotFound(command, err)
git.exc.GitCommandNotFound: Cmd('git') not found due to: OSError('[Errno 20] Not a directory')
  cmdline: git checkout master

my git cmd run ok:
image

is something wrong? i can run the same code on windows but failed on ubuntu!

help me tks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions