Ensure target_dir has trailing separator in release.export().
authorW. Trevor King <wking@drexel.edu>
Thu, 21 Oct 2010 12:04:02 +0000 (08:04 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 21 Oct 2010 12:04:02 +0000 (08:04 -0400)
release.py

index 879aca42e3c25aa802a2dbf54aeccf91b1ae986a..f43570188cf49ebe204bd9acc73c9fd654ea24dc 100755 (executable)
@@ -83,6 +83,8 @@ def tag(tag):
     invoke(['git', 'tag', tag])
 
 def export(target_dir):
+    if not target_dir.endswith(os.path.sep):
+        target_dir += os.path.sep
     print 'export current revision to', target_dir
     p = Pipe([['git', 'archive', '--prefix', target_dir, 'HEAD'],
               ['tar', '-xv']])