Skip to content

Deprecated git whatchanged in CI #626

@piptouque

Description

@piptouque

Bug Report

Expected behavior/code
The check-changelog step in CircleCI fails with :

#!/bin/bash -eo pipefail
git whatchanged --name-only --pretty="" origin..HEAD | grep CHANGELOG
'git whatchanged' is nominated for removal.

hint: You can replace 'git whatchanged <opts>' with:
hint:   git log <opts> --raw --no-merges
hint: Or make an alias:
hint:   git config set --global alias.whatchanged 'log --raw --no-merges'

If you still use this command, here's what you can do:

- read https://git-scm.com/docs/BreakingChanges.html
- check if anyone has discussed this on the mailing
  list and if they came up with something that can
  help you: https://lore.kernel.org/git/?q=git%20whatchanged
- send an email to <git@vger.kernel.org> to let us
  know that you still use this command and were unable
  to determine a suitable replacement

fatal: refusing to run without --i-still-use-this

Exited with code exit status 1

Possible Solution
Replace the git whatchanged call with git log --raw --no-merges as advised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions