Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git/repo/base.py: is_dirty(): Fix pathspec handling #1062

Merged
merged 1 commit into from Sep 28, 2020

Commits on Sep 28, 2020

  1. git/repo/base.py: is_dirty(): Fix pathspec handling

    It's possible to specify a pathspec (eg :!foo) to git diff/status/...
    but it currently fails with:
    
    git.exc.GitCommandError: Cmd('/usr/bin/git') failed due to: exit code(128)
      cmdline: /usr/bin/git diff --abbrev=40 --full-index --raw :!foo
      stderr: 'fatal: ambiguous argument ':!foo': unknown revision or path not in the working tree.
    
    Add missing '--' to the arguments to fix this ambiguity
    
    Signed-off-by: Arnaud Patard <[email protected]>
    apatard committed Sep 28, 2020
You can’t perform that action at this time.