mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Tests pass on windows
This commit is contained in:
parent
56e5c4eb2d
commit
143ed94500
21 changed files with 224 additions and 109 deletions
|
|
@ -16,7 +16,7 @@ logger = logging.getLogger('pre_commit')
|
|||
|
||||
def get_root():
|
||||
path = os.getcwd()
|
||||
while len(path) > 1:
|
||||
while path != os.path.normpath(os.path.join(path, '../')):
|
||||
if os.path.exists(os.path.join(path, '.git')):
|
||||
return path
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue