File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ for commit in $commits; do
5050 fi
5151 done
5252
53- # Do diff matching
54- docker run --rm -v " $after_tmp :/diff/left" -v " $before_tmp :/diff/right" -p 4567:4567 rozelin/gumtree:latest axmldiff left/$commit .tsx right/$commit .tsx > " $map_file_tmp_dir /$commit .diff.xml"
55- node ./scripts/diff-match/for-multi.mjs --file $map_file_tmp_dir /$commit .diff.xml --multiFiles $actual_files --projectRootDir $project_root_dir --idMapDir $map_file_dir --beforeTmpDir $before_tmp --afterTmpDir $after_tmp
53+ if [ " ${# actual_files[@]} " -ge 2 ]; then
54+ # Do diff matching
55+ docker run --rm -v " $after_tmp :/diff/left" -v " $before_tmp :/diff/right" -p 4567:4567 rozelin/gumtree:latest axmldiff left/$commit .tsx right/$commit .tsx > " $map_file_tmp_dir /$commit .diff.xml"
56+ node ./scripts/diff-match/for-multi.mjs --file $map_file_tmp_dir /$commit .diff.xml --multiFiles $actual_files --projectRootDir $project_root_dir --idMapDir $map_file_dir --beforeTmpDir $before_tmp --afterTmpDir $after_tmp
57+ fi
5658done
You can’t perform that action at this time.
0 commit comments