Skip to content

Commit

Permalink
Avoid recursion in version control repositories.
Browse files Browse the repository at this point in the history
  • Loading branch information
bistory committed Dec 23, 2010
1 parent 07f5dd0 commit 6ca6082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/trimage/trimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def walk(self, dir, delegatorlist):
Walks a directory, and executes a callback on each file
"""
dir = path.abspath(dir)
for file in [file for file in listdir(dir) if not file in [".",".."]]:
for file in [file for file in listdir(dir) if not file in [".","..",".svn",".git",".hg",".bzr",".cvs"]]:
nfile = path.join(dir, file)

if path.isdir(nfile):
Expand Down

1 comment on commit 6ca6082

@deweydb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch is missing from the ubuntu package: trimage
#36

Please sign in to comment.