def _AddChangeIdToCommitMessage(self, options, args):
    'Re-commits using the current message, assumes the commit hook is in\n    place.\n    '
    log_desc = (options.message or CreateDescriptionFromLog(args))
    git_command = ['commit', '--amend', '-m', log_desc]
    RunGit(git_command)
    new_log_desc = CreateDescriptionFromLog(args)
    if git_footers.get_footer_change_id(new_log_desc):
        print('git-cl: Added Change-Id to commit message.')
        return new_log_desc
    else:
        DieWithError('ERROR: Gerrit commit-msg hook not installed.')
Re-commits using the current message, assumes the commit hook is in
place.
def _AddChangeIdToCommitMessage(self, options, args):
    'Re-commits using the current message, assumes the commit hook is in\n    place.\n    '
    log_desc = (options.message or CreateDescriptionFromLog(args))
    git_command = ['commit', '--amend', '-m', log_desc]
    RunGit(git_command)
    new_log_desc = CreateDescriptionFromLog(args)
    if git_footers.get_footer_change_id(new_log_desc):
        print('git-cl: Added Change-Id to commit message.')
        return new_log_desc
    else:
        DieWithError('ERROR: Gerrit commit-msg hook not installed.')