commands: rename possiblyMalformedSmudge to possiblyMalformedObjectSize
This commit is contained in:
parent
910ef2d70a
commit
72c15d2826
@ -80,7 +80,7 @@ func filterCommand(cmd *cobra.Command, args []string) {
|
|||||||
if errors.IsNotAPointerError(err) {
|
if errors.IsNotAPointerError(err) {
|
||||||
malformed = append(malformed, req.Header["pathname"])
|
malformed = append(malformed, req.Header["pathname"])
|
||||||
err = nil
|
err = nil
|
||||||
} else if possiblyMalformedSmudge(n) {
|
} else if possiblyMalformedObjectSize(n) {
|
||||||
malformedOnWindows = append(malformedOnWindows, req.Header["pathname"])
|
malformedOnWindows = append(malformedOnWindows, req.Header["pathname"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ func smudgeCommand(cmd *cobra.Command, args []string) {
|
|||||||
} else {
|
} else {
|
||||||
Error(err.Error())
|
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.")
|
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 "<unknown file>"
|
return "<unknown file>"
|
||||||
}
|
}
|
||||||
|
|
||||||
func possiblyMalformedSmudge(n int64) bool {
|
func possiblyMalformedObjectSize(n int64) bool {
|
||||||
return n > 4*humanize.Gigabyte && runtime.GOOS == "windows"
|
return n > 4*humanize.Gigabyte && runtime.GOOS == "windows"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user