pixta-dev / repository-mirroring-action

A GitHub Action for mirroring a repository to another repository
https://github.com/marketplace/actions/mirroring-repository
MIT License
233 stars 81 forks source link

Failing to mirror repo with file in LFS #22

Open stichiboi opened 1 year ago

stichiboi commented 1 year ago

I'm mirroring a repo from Github to Gitlab.

The Github repo has a file in LFS.

The Gitlab repo has Git Large File Storage (LFS) option enabled

Yet I'm getting this issue:

Locking support detected on remote "mirror". Consider enabling it with:
  $ git config lfs.https://gitlab.com/[my gitlab repo].git/info/lfs.locksverify true
LFS upload failed:
  (missing) assets/very_large_file.txt ([file hash])
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: 'git config lfs.allowincompletepush true'

In my Github action,

      - uses: pixta-dev/repository-mirroring-action@v1.1.0

I saw there is a PR to add support for LFS, but I don't know if it's in the current action version.

Do you have suggestions on how to solve this problem?

maris-development commented 1 year ago

Still having this issue

rbarrett-trinet commented 3 months ago

The issue is still present, I think you need to add an option for LFS = true as an input that runs the following:

git lfs fetch --all