Typi typoes...
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
7b6407df81
commit
e864768c74
1 changed files with 4 additions and 4 deletions
|
@ -84,7 +84,7 @@ def process_namespace(namespace, check, walk=False):
|
||||||
fix_link(hook, target_link)
|
fix_link(hook, target_link)
|
||||||
else:
|
else:
|
||||||
for repo in os.listdir(path):
|
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'):
|
if not repo_path.endswith('.git'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -122,15 +122,15 @@ def main():
|
||||||
|
|
||||||
elif args.namespace:
|
elif args.namespace:
|
||||||
walk = False
|
walk = False
|
||||||
if namespace == 'forks':
|
if args.namespace == 'forks':
|
||||||
walk = true
|
walk = True
|
||||||
process_namespace(args.namespace, args.check, walk=walk)
|
process_namespace(args.namespace, args.check, walk=walk)
|
||||||
else:
|
else:
|
||||||
# Check all repos
|
# Check all repos
|
||||||
for namespace in namespaces:
|
for namespace in namespaces:
|
||||||
walk = False
|
walk = False
|
||||||
if namespace == 'forks':
|
if namespace == 'forks':
|
||||||
walk = true
|
walk = True
|
||||||
process_namespace(namespace, args.check, walk=walk)
|
process_namespace(namespace, args.check, walk=walk)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue