commands: strip trailing repository /
This commit is contained in:
parent
655aba6702
commit
4fc27fddf1
|
@ -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():
|
||||
|
|
Reference in New Issue