changeset 444:cb061f0474ba

Always call checkout index with a trailing / to force the creation of the dest directory.
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 09 Aug 2010 12:24:56 +0000
parents 464b2947af23
children e049599fde1a
files treepkg/git.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)