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

Specify fetch-depth during mirroring to gitlab. #982

Merged
merged 1 commit into from
Sep 27, 2023
Merged

Conversation

rosiel
Copy link
Member

@rosiel rosiel commented Sep 27, 2023

GitHub Issue: actions failed, e.g. https://github.com/Islandora/islandora/actions/runs/6300409377/job/17103202042#step:4:20

Similar ticket, taking the --force option:

What does this Pull Request do?

We were having problems because the during the action, the checked out repository didn't match the target gitlab -

hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again. 

There dont' seem to be commits in gitlab that aren't in github.

So, this is probably due to the new checkout actions including v3 defaulting to only check out information about the latest commit. We apparently can use fetch-depth: 0 to revert to getting all commits.

@aOelschlager , @Islandora/committers

Copy link

@aOelschlager aOelschlager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense.

@aOelschlager aOelschlager merged commit 58d1b37 into 2.x Sep 27, 2023
9 checks passed
@rosiel rosiel deleted the rosiel-patch-1 branch November 17, 2023 14:59
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

Successfully merging this pull request may close these issues.

Run with actions/checkout@v3
2 participants