Carthage/Carthage

Fails to check out deppendency using git lfs

Open

#1,883 创建于 2017年4月14日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Swift (15,179 star) (1,544 fork)batch import
enhancementhelp wanted

描述

  • carthage version: 0.20.1
  • Are you using --use-submodules? Yes

Carthage doesn't handle repositories using git lfs on origin/HEAD. The general behavior is as follows:

  • Carthage clones repository to cache. LFS successfully smudges.
  • Carthage clones repository to Checkouts. Since remote is the cache, LFS smudge fails.

The failure happens before Carthage checks out the actually used branch.

Workaround: Create .lfsconfig as detailed in server discovery. This doesn't work well if you use SSH to access the repository.

Suggested fix:

Carthage could perform the equivalent of git clone --no-checkout initially, fix up the remote (which happens too late at the moment), then git checkout the resolved commit.

贡献者指南