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)
|
||||
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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue