(*cobra.Command, []string)
| 25 | ) |
| 26 | |
| 27 | func dedupTestCommand(*cobra.Command, []string) { |
| 28 | setupRepository() |
| 29 | |
| 30 | if supported, err := tools.CheckCloneFileSupported(cfg.TempDir()); err != nil || !supported { |
| 31 | if err == nil { |
| 32 | err = errors.New(tr.Tr.Get("Unknown reason")) |
| 33 | } |
| 34 | Exit(tr.Tr.Get("This system does not support de-duplication: %s", err)) |
| 35 | } |
| 36 | |
| 37 | if len(cfg.Extensions()) > 0 { |
| 38 | Exit(tr.Tr.Get("This platform supports file de-duplication, however, Git LFS extensions are configured and therefore de-duplication can not be used.")) |
| 39 | } |
| 40 | |
| 41 | Print(tr.Tr.Get("OK: This platform and repository support file de-duplication.")) |
| 42 | } |
| 43 | |
| 44 | func dedupCommand(cmd *cobra.Command, args []string) { |
| 45 | if dedupFlags.test { |
no test coverage detected