From 6c63f3561534ac44868171e2087a4c369be2f651 Mon Sep 17 00:00:00 2001 From: "OTSUKA, Yuanying" Date: Fri, 25 Sep 2015 14:44:14 +0900 Subject: [PATCH] Make git log messsage to shorter git log title must be shorter than 50 chars, and git log body text should be shorter than 72 chars. This patch fixes this issue on generated comment. Change-Id: I2b35b627e32e5891fa0db0aa8c9fce664adb5e50 --- tools/migrate_from_tempest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/migrate_from_tempest.sh b/tools/migrate_from_tempest.sh index d956e2f..c31614f 100755 --- a/tools/migrate_from_tempest.sh +++ b/tools/migrate_from_tempest.sh @@ -93,7 +93,11 @@ for file in $files; do if [[ -z "$file_list" ]]; then file_list="$filename" else - file_list="$file_list, $filename" + tmp_file_list="$file_list, $filename" + char_size=`echo $tmp_file_list | wc -c` + if [ "$char_size" -lt 27 ]; then + file_list="$file_list, $filename" + fi fi done # Cleanup temporary tempest repo