commands: strip trailing repository /

This commit is contained in:
Frédéric Péters 2020-08-05 08:06:46 +02:00
parent 655aba6702
commit 4fc27fddf1
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class Command(BaseCommand):
os.chdir(repository)
except OSError:
continue
module = os.path.basename(repository).replace('.git', '')
module = os.path.basename(repository.rstrip('/')).replace('.git', '')
print(module)
try:
for line in subprocess.check_output(['git', 'log', '--format=format:%H👾%an👾%ae👾%aI👾%cI👾%s']).splitlines():