From: W. Trevor King Date: Thu, 21 Oct 2010 12:04:02 +0000 (-0400) Subject: Ensure target_dir has trailing separator in release.export(). X-Git-Tag: 1.0.0~4^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4bfbcca9a0a5a6985f72acc812698e89a9b3efe;p=be.git Ensure target_dir has trailing separator in release.export(). --- diff --git a/release.py b/release.py index 879aca4..f435701 100755 --- a/release.py +++ b/release.py @@ -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']])