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

Rebase conflicts only in github actions #372

Closed
MartinX3 opened this issue Oct 17, 2020 · 1 comment
Closed

Rebase conflicts only in github actions #372

MartinX3 opened this issue Oct 17, 2020 · 1 comment

Comments

@MartinX3
Copy link

Example: https://github.com/MartinX3-AndroidDevelopment-LineageOS/android_device_sony_pdx201/tree/MartinX3/github-actions

If I use checkout and then a rebase or a git pull --rebase or anything else which does a merge/rebase I run into a merge conflict.

Doing the same on my local computer (using git clone insteaf of actions/checkout of course) I don't get any merge conflicts.

@MartinX3
Copy link
Author

MartinX3 commented Oct 17, 2020

Fixed by using

- uses: actions/checkout@v2
  with:
    fetch-depth: 0

#265 (comment)

For improved perf, v2 only fetches a single commit by default. If you set fetch-depth: 0 then will fetch all history for all branches and tags and the short sha will probably work. Otherwise need to specify the full SHA.

I hope others with the same problem will find this issue ticket and the solution.

laymonage added a commit to laymonage/spotify-to-github that referenced this issue Apr 8, 2023
Aluerie added a commit to Aluerie/Dota2Utils that referenced this issue May 6, 2023
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