Skip to content

Commit

Permalink
Merge pull request #127 from ipbus/bugfix/src-info-duplicates
Browse files Browse the repository at this point in the history
Removed duplicated entries from the srcinfo table
  • Loading branch information
alessandrothea authored Apr 3, 2021
2 parents a4d0fdd + e5c24d7 commit b97f598
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 @@ -582,10 +582,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 @@ -596,8 +595,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 b97f598

Please sign in to comment.