Skip to content

Commit

Permalink
Skip .git* folders and files
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiberrettini committed Jul 22, 2015
1 parent 78ac607 commit 719fa47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hg-fast-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ def export_file_contents(ctx,manifest,files,hgtags,repourl,revnode,ignoreSub,enc
if not hgtags and file == ".hgtags":
sys.stderr.write('Skip %s\n' % (file))
continue
# Skip .git files. They only get us in trouble.
if '/.git' in file:
sys.stderr.write('Skip %s\n' % (file))
continue
d=ctx.filectx(file).data()
if encoding:
filename=file.decode(encoding).encode('utf8')
Expand Down

0 comments on commit 719fa47

Please sign in to comment.