Merge "Remove file path from migration commit msg"
This commit is contained in:
@@ -53,7 +53,8 @@ cd $tmpdir
|
|||||||
for file in $files; do
|
for file in $files; do
|
||||||
# Get the latest change-id for each file
|
# Get the latest change-id for each file
|
||||||
change_id=`git log -n1 --grep "Change-Id: " -- $file | grep "Change-Id: " | awk '{print $2}'`
|
change_id=`git log -n1 --grep "Change-Id: " -- $file | grep "Change-Id: " | awk '{print $2}'`
|
||||||
CHANGE_LIST=`echo -e "$CHANGE_LIST\n * $file: $change_id"`
|
filename=`basename $file`
|
||||||
|
CHANGE_LIST=`echo -e "$CHANGE_LIST\n * $filename: $change_id"`
|
||||||
done
|
done
|
||||||
|
|
||||||
# Move files and commit
|
# Move files and commit
|
||||||
@@ -102,4 +103,9 @@ rm -rf $tmpdir
|
|||||||
commit_message="Migrated $file_list from tempest"
|
commit_message="Migrated $file_list from tempest"
|
||||||
pre_list=$"This migrates the above files from tempest. This includes tempest commits:"
|
pre_list=$"This migrates the above files from tempest. This includes tempest commits:"
|
||||||
post_list=$"to see the commit history for these files refer to the above Change-Ids in the tempest repository"
|
post_list=$"to see the commit history for these files refer to the above Change-Ids in the tempest repository"
|
||||||
git commit -m "$commit_message" -m "$pre_list" -m "$CHANGE_LIST" -m "$post_list"
|
if [ $service_client -eq 1 ]; then
|
||||||
|
bp_msg="Partially implements blueprint migrate-service-clients-to-tempest-lib"
|
||||||
|
else
|
||||||
|
bp_msg=""
|
||||||
|
fi
|
||||||
|
git commit -m "$commit_message" -m "$pre_list" -m "$CHANGE_LIST" -m "$post_list" -m "$bp_msg"
|
||||||
|
Reference in New Issue
Block a user