Add files now remapps to absolute path on commit

This commit is contained in:
2014-11-06 16:19:38 +01:00
parent 97414a84f7
commit dd029cde40

View File

@@ -241,7 +241,9 @@ class FileAPI(Resource):
import shutil
for src_file_path, dst_file_path in path_remap.items():
shutil.move(os.path.join(extract_tmp_dir, src_file_path), dst_file_path)
shutil.move(
os.path.join(extract_tmp_dir, src_file_path),
os.path.join(project.repository_path, dst_file_path))
# TODO, dry run commit (using commit message)
# Seems not easily possible with SVN, so we might just smartly use svn status