Skip to content

util-linux_2.33{,.1}.orig.tar.xz: convert to Git LFS

Emanuele Aina requested to merge wip/em/re-import-lfs-objects into pristine-lfs

Commit 7001ebf3 "Clean-up pristine-lfs branch of all the cruft" accidentally committed the .orig.tar.xz as plain files in contrast to what is set in .gitattributes, making git lfs fsck very unhappy:

$ git checkout pristine-lfs
Switched to branch 'pristine-lfs'
Your branch is up to date with 'origin/pristine-lfs'.
Encountered 2 files that should have been pointers, but weren't:
        util-linux_2.33.1.orig.tar.xz
        util-linux_2.33.orig.tar.xz

$ git lfs fsck
pointer: unexpectedGitObject: "util-linux_2.33.1.orig.tar.xz" (treeish 90d0e1752c8b8591e1d67f9fbbf986d926507484) should have been a pointer but was not
pointer: unexpectedGitObject: "util-linux_2.33.orig.tar.xz" (treeish 90d0e1752c8b8591e1d67f9fbbf986d926507484) should have been a pointer but was not

Re-import the files as LFS objects to make LFS happy again:

$ git lfs migrate import --no-rewrite util-linux_2.33.orig.tar.xz util-linux_2.33.1.orig.tar.xz
migrate: override changes in your working copy?  All uncommitted changes will be lost! [y/N] y
migrate: changes in your working copy will be overridden ...
migrate: checkout: ..., done.
$ git lfs fsck
Git LFS fsck OK

Merge request reports

Loading