Carthage/Carthage

Fails to check out deppendency using git lfs

开放

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

 (1 条评论) (0 个反应) (0 位负责人)Swift (1,544 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (15,179 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

  • 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.

贡献者指南