Skip to content

Commit

Permalink
Removed duplicated entries from the srcinfo table
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrothea committed Apr 1, 2021
1 parent 3300e01 commit d19a2e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ipbb/cmds/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,10 +583,9 @@ def srcs_info(ictx):
continue

for _, lSubModDir, _ in (l.split() for l in lSubmods.split('\n')):
print(lSubModDir)
with DirSentry(join(lSrcDir,lSubModDir)) as _:
lHEADId, lHash = _git_info()
lSrcTable.add_row([u' └──'+basename(lSubModDir), lKind, lHEADId, lHash])
lSrcTable.add_row(u' └──'+basename(lSubModDir), lKind, lHEADId, lHash)

elif exists(join(lSrcDir, '.svn')):
with DirSentry(lSrcDir) as _:
Expand All @@ -597,8 +596,6 @@ def srcs_info(ictx):
else:
lSrcTable.add_row(lSrc, lKind, lHEADId, lHash)


lSrcTable.add_row(lSrc, lKind, lHEADId, lHash)
cprint(lSrcTable)


Expand Down

0 comments on commit d19a2e7

Please sign in to comment.