Skip to content

COMP: Fix cloning from GitHub mirror when git lfs is enabled locally

This commit fixes the following error:

  $ git clone https://github.com/Kitware/SMTK
  Cloning into 'SMTK'...
  [...]
  Downloading data/attribute/attribute_collection/Basic2DFluid.sbt (1.25 KB)
  Error downloading object: data/attribute/attribute_collection/Basic2DFluid.sbt (c75d88f): Smudge error: Error downloading data/attribute/attribute_collection/Basic2DFluid.sbt (c75d88f5e5996a8d99460fab042fcfdff8ba36f473b900dff5ea2312572d346b): [c75d88f5e5996a8d99460fab042fcfdff8ba36f473b900dff5ea2312572d346b] Object does not exist on the server: [404] Object does not exist on the server
  [..]

when cloning https://github.com/Kitware/SMTK on developer workstation with git-lfs enabled:

  $ git config --global --get-regexp "filter"
  filter.lfs.process git-lfs filter-process
  filter.lfs.required true
  filter.lfs.clean git-lfs clean -- %f
  filter.lfs.smudge git-lfs smudge -- %f

See https://github.com/git-lfs/git-lfs/blob/main/docs/man/git-lfs-config.5.ronn

Fixes #454

Closes #454

Merge request reports