From 627407959852d088df01f15122fb87e753ca5b75 Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Tue, 12 Aug 2014 17:15:59 +0000 Subject: WIP: Add commit when change morph fields or system fields --- scripts/migrate-chunks | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/migrate-chunks b/scripts/migrate-chunks index 8be928c0..7ab49803 100755 --- a/scripts/migrate-chunks +++ b/scripts/migrate-chunks @@ -102,10 +102,13 @@ def move_morphologies(morphs, kind, directory, path): for submorph in morph[morph_dir[kind]]: submorph['morph'] = sanitise_morphology_path(submorph['morph'], kind) print 'Moving %s into %s' % (morph.filename, directory) + loader.save_to_file(morph.filename, morph) + subprocess.call(['git', 'add', morph.filename]) + subprocess.call(['git', 'commit', '--quiet', '-m', + 'Add morphology paths to %s' %(morph['name'] + '.morph']) new_location = os.path.join(subdir, morph.filename) subprocess.call(['git', 'mv', morph.filename, new_location]) morph.filename = new_location - loader.save_to_file(morph.filename, morph) subprocess.call(['git', 'add', morph.filename]) subprocess.call(['git', 'commit', '--quiet', '-m', 'Move %s into %s' %(morph['name'] + '.morph', directory)]) -- cgit v1.2.1