Typi typoes...

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-04-17 15:49:44 +02:00
parent 7b6407df81
commit e864768c74

View file

@ -84,7 +84,7 @@ def process_namespace(namespace, check, walk=False):
fix_link(hook, target_link)
else:
for repo in os.listdir(path):
repo_path = os.path.join(dirpath, repo)
repo_path = os.path.join(path, repo)
if not repo_path.endswith('.git'):
continue
@ -122,15 +122,15 @@ def main():
elif args.namespace:
walk = False
if namespace == 'forks':
walk = true
if args.namespace == 'forks':
walk = True
process_namespace(args.namespace, args.check, walk=walk)
else:
# Check all repos
for namespace in namespaces:
walk = False
if namespace == 'forks':
walk = true
walk = True
process_namespace(namespace, args.check, walk=walk)