Merge pull request #4009 from bk2204/large-file-warning

Add an option to control warning about files larger than 4 GiB
This commit is contained in:
brian m. carlson 2020-02-03 17:19:49 +00:00 committed by GitHub
commit c3b776db6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

@ -201,7 +201,7 @@ func filterCommand(cmd *cobra.Command, args []string) {
}
}
if len(malformedOnWindows) > 0 {
if len(malformedOnWindows) > 0 && cfg.Git.Bool("lfs.largefilewarning", true) {
fmt.Fprintf(os.Stderr, "Encountered %d file(s) that may not have been copied correctly on Windows:\n", len(malformedOnWindows))
for _, m := range malformedOnWindows {

@ -83,6 +83,12 @@ be scoped inside the configuration for a remote.
Default: `lfs` in Git repository directory (usually `.git/lfs`).
* `lfs.largefilewarning`
Warn when a file is 4 GiB or larger. Such files will be corrupted when using
Windows (unless smudging is disabled) due to a limitation in Git. Default:
true.
### Transfer (upload / download) settings
These settings control how the upload and download of LFS content occurs.