Skip to content

Commit

Permalink
Widen .git* files string to match
Browse files Browse the repository at this point in the history
  • Loading branch information
luigiberrettini committed Jul 23, 2015
1 parent 719fa47 commit 2ec27d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hg-fast-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def export_file_contents(ctx,manifest,files,hgtags,repourl,revnode,ignoreSub,enc
sys.stderr.write('Skip %s\n' % (file))
continue
# Skip .git files. They only get us in trouble.
if '/.git' in file:
if '.git' in file:
sys.stderr.write('Skip %s\n' % (file))
continue
d=ctx.filectx(file).data()

This comment has been minimized.

Copy link
@luigiberrettini

luigiberrettini Oct 7, 2015

Author Owner

Removed the following code to address the issue with a log rewrite:
http://github.com/github/git-lfs/issues/326
http://github.com/rtyley/bfg-repo-cleaner/releases/tag/v1.12.5

# Skip files bigger than 3 MB
if len(d) > 3145728:
  sys.stderr.write('Skip large file %s (size %d)\n' % (file,len(d)))
  continue
Expand Down
2 changes: 1 addition & 1 deletion hg-fast-export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ echo
echo "Checkout your repo using"
echo "git checkout HEAD"
echo
echo "If this repositor contains submodules, then initialize and update the submodules with the following commands."
echo "If this repository contains submodules, then initialize and update the submodules with the following commands."
echo "git submodule init"
echo "git submodule update"

0 comments on commit 2ec27d0

Please sign in to comment.