Skip to content

Saving an old revision of an LFS file saves only the LFS pointer #6146

@markonius

Description

@markonius

Current behaviour

When viewing the history of an LFS-tracked file, if I click "Save as" in the right click menu of an old revision of the file, only the LFS pointer exists in the saved file.

If, however, I choose "Difftool selected < - > local", the entire file is shown in KDiff.

Expected behaviour

The entire file should be saved to disk when selecting "Save as" on an old revision of an LFS-tracked file.

Steps to reproduce

  1. Have a file in git-LFS
  2. Commit some changes to it several times
  3. Find the file in the file tree
  4. Select "Viev history"
  5. Try to save an old revision of the file
  6. Observe that the file is corrupted (only the LFS pointer is saved)
  7. Try to diff it
  8. Observe that the entire file is visible in KDiff

Screenshots

image
image
image

Did this work in previous version of GitExtensions

As far as I'm aware, no.

Environment

  • Git Extensions 3.00.00.4433
  • Build fca7cf2
  • Git 2.19.1.windows.1
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3260.0
  • DPI 96dpi (no scaling)

Diagnostics

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions