# HG changeset patch # User Andre Heinecke # Date 1281356696 0 # Node ID cb061f0474ba85187378fbdff9ecada9e190588c # Parent 464b2947af2346ada0ee5eb11b2de40287667ac6 Always call checkout index with a trailing / to force the creation of the dest directory. diff -r 464b2947af23 -r cb061f0474ba treepkg/git.py --- a/treepkg/git.py Fri Aug 06 15:00:51 2010 +0000 +++ b/treepkg/git.py Mon Aug 09 12:24:56 2010 +0000 @@ -37,6 +37,7 @@ def export(src, dest): """Exports the local branch from src to dest""" + dest = os.path.normpath(dest) + os.sep run.call(cmdexpand("git checkout-index -a -f --prefix=$dest", **locals()), cwd=src)