Tests pass on windows

This commit is contained in:
Anthony Sottile 2015-01-18 19:45:44 -08:00
parent 56e5c4eb2d
commit 143ed94500
21 changed files with 224 additions and 109 deletions

View file

@ -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: