summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOTSUKA, Yuanying <yuanying@fraction.jp>2015-09-25 14:44:14 +0900
committerOTSUKA, Yuanying <yuanying@fraction.jp>2015-11-25 17:32:35 +0900
commit6c63f3561534ac44868171e2087a4c369be2f651 (patch)
treeff043c2a990067308444a5ba8a9273e505f2429d
parent002d2bdd29a39bf0b15732a165f11ba380ebc087 (diff)
downloadtempest-lib-6c63f3561534ac44868171e2087a4c369be2f651.tar.gz
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
-rwxr-xr-xtools/migrate_from_tempest.sh6
1 files changed, 5 insertions, 1 deletions
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