Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal: bad object xxx when executing git diff #2

Open
vduckute1812 opened this issue May 24, 2020 · 1 comment
Open

fatal: bad object xxx when executing git diff #2

vduckute1812 opened this issue May 24, 2020 · 1 comment

Comments

@vduckute1812
Copy link

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.

@vduckute1812
Copy link
Author

I've known problem, I forgot to fetch branches down locally. Now it work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant