From 2ec27d0c847931aaa12ea62d55cdc352e002c27d Mon Sep 17 00:00:00 2001 From: Luigi Berrettini Date: Thu, 23 Jul 2015 12:50:43 +0200 Subject: [PATCH] Widen .git* files string to match --- hg-fast-export.py | 2 +- hg-fast-export.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hg-fast-export.py b/hg-fast-export.py index 79fe65fd..e0bfe080 100755 --- a/hg-fast-export.py +++ b/hg-fast-export.py @@ -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() diff --git a/hg-fast-export.sh b/hg-fast-export.sh index 9b6f45ff..c7de7198 100755 --- a/hg-fast-export.sh +++ b/hg-fast-export.sh @@ -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"