2017-01-18 6 views
3

私のレポはgit lfsを使用しています。新鮮なクローンのために、私は走った:git lfsでリポジトリをクローズできません

git lfs install 
git clone https://example.com/repo.git 

クローンが、それはLFSファイルのダウンロードを開始地点に到達するいくつかのファイルを取得し、その後、失敗しました。失敗するファイルは、複製しようとするたびに異なります。非常に時折それは成功する。ここで

が出力されます。

Cloning into 'repo'... 
remote: Counting objects: 35699, done. 
remote: Compressing objects: 100% (17678/17678), done. 
remote: Total 35699 (delta 15603), reused 35553 (delta 15545) 
Receiving objects: 100% (35699/35699), 231.45 MiB | 11.12 MiB/s, done. 
Resolving deltas: 100% (15603/15603), done. 
Downloading big_file.big (157.39 KB) 
... 
Downloading some_other_big_file.big (18.84 KB) 
Error downloading object: some_other_big_file.big 

Errors logged to blah.log 
Use `git lfs logs last` to view the log. 
error: external filter 'git-lfs filter-process' failed 
fatal: some_other_big_file.big: smudge filter lfs failed 
warning: Clone succeeded, but checkout failed. 
You can inspect what was checked out with 'git status' 
and retry the checkout with 'git checkout -f HEAD' 

LFSログは言う:

Error downloading object: some_other_big_file.big 

Smudge error: Error buffering media file: cannot write data to tempfile "blah.tmp": LFS: unexpected EOF: 
github.com/git-lfs/git-lfs/errors.newWrappedError 
     C:/Go/src/github.com/git-lfs/git-lfs/errors/types.go:166 
github.com/git-lfs/git-lfs/errors.NewSmudgeError 
     C:/Go/src/github.com/git-lfs/git-lfs/errors/types.go:252 
github.com/git-lfs/git-lfs/lfs.PointerSmudge 
     C:/Go/src/github.com/git-lfs/git-lfs/lfs/pointer_smudge.go:70 
github.com/git-lfs/git-lfs/lfs.(*Pointer).Smudge 
     C:/Go/src/github.com/git-lfs/git-lfs/lfs/pointer.go:65 
github.com/git-lfs/git-lfs/commands.smudge 
     C:/Go/src/github.com/git-lfs/git-lfs/commands/command_smudge.go:84 
github.com/git-lfs/git-lfs/commands.filterCommand 
     C:/Go/src/github.com/git-lfs/git-lfs/commands/command_filter_process.go:65 
github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra.(*Command).execute 
     C:/Go/src/github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra/command.go:477 
github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra.(*Command).Execute 
     C:/Go/src/github.com/git-lfs/git-lfs/vendor/github.com/spf13/cobra/command.go:551 
github.com/git-lfs/git-lfs/commands.Run 
     C:/Go/src/github.com/git-lfs/git-lfs/commands/run.go:66 
main.main 
     C:/Go/src/github.com/git-lfs/git-lfs/git-lfs.go:33 
runtime.main 
     C:/Go/src/runtime/proc.go:183 
runtime.goexit 
     C:/Go/src/runtime/asm_amd64.s:2086 

私はこの時点でgit lfs pullをしようとすると、すべてが正常に動作します。

lfsファイルのダウンロードに失敗した原因は何ですか?チェックする

+0

。レポはどこにホストされていますか?鉱山はVSTSにあります。 – quinmars

答えて

-2

いくつかの点:

1)あなたは、一時ファイル用のディスク容量を確認しましたか?いくつかのLinuxマシンを使用していた場合は/ tmpと似ています(私はあなたがWindowsを使っていると思います)。

2)は、 "GitのLFSクローン..." の代わりに "gitのクローン..." を使用しようとしたことがありますか?

1

私は同様の問題があり、already a bug reported with git lfsがありました。バグが解決されている間に、この回避策が役立ちました。ここでは、失敗した場所のフィルタをスキップします。

// Skip smudge - We'll download binary files later in a faster batch 
git lfs install --skip-smudge 

// Do git clone here 
git clone ... 

// Fetch all the binary files in the new clone 
git lfs pull 

// Reinstate smudge 
git lfs install --force 

クレジット:私はここに同じ問題を抱えている@strich

関連する問題