"not a git repository" when running pre-commit hook on older git client #203
Labels
bug
Something isn't working
maybe invalid?
Can't reproduce, or seems already fixed, or need more information
question
Further information is requested
Milestone
This bug is based on my experiments with
darker
on closed-source repo.I am not at liberty to disclose any code. We'll have to work on recreating failure criteria on our own.
Steps to reproduce:
/repository/subdir/file.py
What happens:
/repository/subdir
, not/repository
GIT_DIR=.git
environment variable.git
directory/repository/subdirectory/.git
, not/repository/.git
not a repository
error.Possible fixes:
GIT_DIR
from ourgit
subprocess invocationscwd
The text was updated successfully, but these errors were encountered: