Files larger than 4 GB are not correctly handled on Windows
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
問題
Files larger than 4 GB are not correctly handled on Windows.
例:
- after cloning a file bigger than 4GB, the downloaded file does not appear to be complete.
This is the case when using either Git core or Git LFS.
診断
環境
- Windows as Operating System
原因
This issue is caused by the following issue in the Git core project (which is not owned by the Bitbucket Server team):
回避策
When using Git LFS, smudging should be disabled completely.
Disable smudging:
$ git lfs install --skip-smudge
$ git lfs env
... snip
git config filter.lfs.process = "git-lfs filter-process --skip"
git config filter.lfs.smudge = "git-lfs smudge --skip -- %f"
Use the following to explicitly pull changes in the branches or fetch updates from the remote:
git lfs pull
Warning added in Git LFS
The following message will be added to Git client log when this issue is encountered:
Encountered <number> file(s) that may not have been copied correctly on Windows
git lfs help smudge` for more details
This has been introduced as part of this Git pull request.