Git-LFS support
Does gitg support git-lfs?
This may turn out to be a newbie question (because I only recently started using gitg), or a bug, or a feature request. Observed behavior:
Using gitg 3.32.1-1 on ubuntu 20.10.
I cloned a repo as usual: git clone repo && cd repo && git lfs install
.
Verified that pdfs are tracked by git lfs by running git lfs track
.
Added some PDFs into the repo, staged and committed them using gitg.
Pushed the commit to my gitlab remote.
Expected result: The files should be committed as git-lfs files. I verified this using two methods:
- Gitlab should indicate that the PDFs are in LFS. (indicated by a small badge saying "LFS" next to the file name)
- When I inspect the commit using
tig
, the files should be shown as being very small, e.g.Bin 0 -> 131 bytes
Observed result: The commit directly contains the binary files.
- Gitlab does not show the LFS badge next to the PDF's file name
- Inspection of the commit using
tig
shows large binary files, e.g.,Bin 0 -> 223410 bytes
Note: I am pretty confident that my git-lfs setup is not the underlying problem since I was able to repair the commit as follows:
t lfs migrate import
git add --renormalize .
git commit -m "Fix broken LFS files"