diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 20:39:53 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 20:40:13 +0200 |
commit | c0a09343c255709705e3e6d381c2b6121b14df74 (patch) | |
tree | ccbc442ec068accf34684c7c79bba69b81955d71 /gentree.py | |
parent | c5bec77577ca9f4e5dc2eec2919288236d9c26bc (diff) |
gentree: fix rename bug in --git-revision option
The --git-revision option didn't handle file/dir renames
correctly, fix that.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ def copy_git_files(srcpath, copy_list, rev, outdir): for srcitem, tgtitem in copy_list: for m, t, h, f in git.ls_tree(rev=rev, files=(srcitem,), tree=srcpath): assert t == 'blob' - f = os.path.join(outdir, f) + f = os.path.join(outdir, f.replace(srcitem, tgtitem)) d = os.path.dirname(f) if not os.path.exists(d): os.makedirs(d) |