▲ | AceJohnny2 5 days ago | |||||||||||||||||||||||||||||||||||||||||||
Another way that LFS is bad, as I recently discovered, is that the migration will pollute the `.gitattributes` of ancestor commits that do not contain the LFS objects. In other words, if you migrate a repo that has commits A->B->C, and C adds the large files, then commits A & B will gain a `.gitattributes` referring to the large files that do not exist in A & B. This is because the migration function will carry its ~gitattributes structure backwards as it walks the history, for caching purposes, and not cross-reference it against the current commit. | ||||||||||||||||||||||||||||||||||||||||||||
▲ | actinium226 5 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
That doesn't sound right. There's no way it's adding a file to previous commits, that would change the hash and thereby break a lot of things. | ||||||||||||||||||||||||||||||||||||||||||||
|