-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
git log
is empty
#1049
Comments
Could you try an older release to see if
I'm not able to reproduce this so far. If you could add some logs or a workflow example I can take a look. |
@cory-miller I've narrowed it down to this: when a GitHub action tries to run git commands on the repo cloned via the checkout action, it fails. This seems like the behaviour change in the latest git itself, due to the user cloning the repo being different from the user trying to read it (as actions run in a container). It seems to be due to #766, and the workaround of adding a step that puts
inside |
I'm seeing issues with
Later on I get:
https://github.com/libwww-perl/HTTP-Message/actions/runs/3825324809/jobs/6508226477 Not sure if the global As a stopgap, I've got it working right by running
|
@oalders I'm having the same problem in https://github.com/skupperproject/skupper-router/actions/runs/3951927345/jobs/6766390478, the error message there is not shown, but I debugged it and saw that it says
My workaround is doing a
|
I should add that for pre-built Docker containers that I'm using in my workflows, I've added git config --system --add safe.directory '*' to the |
Using the following method to checkout:
The git directory (
/github/workspace
) gets into this state:$GITHUB_SHA
is not the same as whatactions/checkout
is showing.git log
is emptygit rev-list --all
is empty$GITHUB_REF
isrefs/pull/123/merge
The suggested command doesn't work because that would need higher privilege.
This changed recently, within the past couple days --
git log
didn't use to be empty before.The text was updated successfully, but these errors were encountered: