I'm running git lfs migrate
on a clean --mirror
clone of my git repo, using the following command:
git lfs migrate import --include=/path/to/[dir_to_convert_to_lfs]/** --everything
The output from this is:
$ git lfs migrate import --include=/path/to/[dir_to_convert_to_lfs]/** --everything
migrate: Sorting commits: ..., done.
migrate: Rewriting commits: 100% (22129/22129), done.
[branch abc -> xyz]
...
could not update refs: exit status 129
After which, it seems like it has corrupted my repo - for example, if I then call:
git rev-list --all --count
It shows that I now have 42251 commits - whereas my expectation was that git lfs migrate import would update the existing commits to point to the files in LFS.
At the moment, I'm struggling to find any information as to what this error message and/or status code is indicating. Also, there are no git lfs logs - i.e. if I call git lfs logs last, it reports:
$ git lfs logs last
No logs to show
I'm using git version 2.27.0 and git lfs version 2.11.0.
Am I doing something wrong with Git LFS Migrate? Are there any ways to debug this?
Update: I've also added, and closed, an issue on the git lfs repo on github for this problem.