From 72c15d28265a90fd81a15eb34878ae2f54c23f6e Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Tue, 15 Aug 2017 09:47:00 -0600 Subject: [PATCH] commands: rename possiblyMalformedSmudge to possiblyMalformedObjectSize --- commands/command_filter_process.go | 2 +- commands/command_smudge.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/command_filter_process.go b/commands/command_filter_process.go index 47aeec99..a2018c61 100644 --- a/commands/command_filter_process.go +++ b/commands/command_filter_process.go @@ -80,7 +80,7 @@ func filterCommand(cmd *cobra.Command, args []string) { if errors.IsNotAPointerError(err) { malformed = append(malformed, req.Header["pathname"]) err = nil - } else if possiblyMalformedSmudge(n) { + } else if possiblyMalformedObjectSize(n) { malformedOnWindows = append(malformedOnWindows, req.Header["pathname"]) } diff --git a/commands/command_smudge.go b/commands/command_smudge.go index 5da81456..630465f5 100644 --- a/commands/command_smudge.go +++ b/commands/command_smudge.go @@ -102,7 +102,7 @@ func smudgeCommand(cmd *cobra.Command, args []string) { } else { Error(err.Error()) } - } else if possiblyMalformedSmudge(n) { + } else if possiblyMalformedObjectSize(n) { fmt.Fprintln(os.Stderr, "Possibly malformed smudge on Windows: see `git lfs help smudge` for more info.") } } @@ -114,7 +114,7 @@ func smudgeFilename(args []string) string { return "" } -func possiblyMalformedSmudge(n int64) bool { +func possiblyMalformedObjectSize(n int64) bool { return n > 4*humanize.Gigabyte && runtime.GOOS == "windows" }