repositories: skip paths that cannot be chdir'ed into
(most probably because they are files, not directories)
This commit is contained in:
parent
d45e1457f6
commit
c2ad39e4bd
|
@ -35,7 +35,10 @@ class Command(BaseCommand):
|
|||
basedir = os.getcwd()
|
||||
for repository in sorted(options.get('repository')):
|
||||
os.chdir(basedir)
|
||||
os.chdir(repository)
|
||||
try:
|
||||
os.chdir(repository)
|
||||
except OSError:
|
||||
continue
|
||||
module = os.path.basename(repository).replace('.git', '')
|
||||
print module
|
||||
try:
|
||||
|
|
Reference in New Issue