git_interface: Force-move Change-Id to end of commit message
Sometimes the git commit hook inserts the Change-Id into the middle of
the commit message and not to its last paragraph. This seems to happen
if '---' is part of the commit message. Subsequently gerrit refuses to
accept the commit.
Solve the problem by force-moving the Change-Id to the end of the commit
While at it, drop get_last_commit_sha_linux_chrome() and its use - we
can refer to the most recent commit in a branch by using the 'HEAD'
reference, without knowing the actual SHA.
TEST=Run patch robot
Reviewed-by: Curtis Malainey <email@example.com>
Commit-Queue: Guenter Roeck <firstname.lastname@example.org>
Tested-by: Guenter Roeck <email@example.com>
1 file changed