Normalize repository root path.

This commit is contained in:
Asher Baker 2015-10-28 13:31:02 +00:00
parent e0e946afac
commit 38fd55a05d

View File

@ -57,6 +57,7 @@ for line in lines:
with open(os.devnull, 'w') as devnull:
try:
root = subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], stderr=devnull, cwd=path, universal_newlines=True).strip()
root = os.path.normcase(root)
if root in roots:
continue