Skip to content

fatal: bad object xxx when executing git diff #2

Description

@vduckute1812

Thank you for your sharing. I met a problem need your help. When I execute this, at

new_files_in_branch=$( git diff \ --name-only \ --diff-filter=AM \ "$BASE_COMMIT" | grep '\.py$' | tr '\n' ' ' )
it raise an error fatal: bad object 170d5fad35bae46edbe5defeb236a0e388c01808 . When I run git branch the values is branch='* (HEAD detached at pull/5/merge)'. Could you please give me some advice about this case?
Thank you so much.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions