(cmd *cobra.Command, args []string)
| 21 | ) |
| 22 | |
| 23 | func installCommand(cmd *cobra.Command, args []string) { |
| 24 | if err := cmdInstallOptions().Install(); err != nil { |
| 25 | Print(tr.Tr.Get("warning: %s", err.Error())) |
| 26 | Print(tr.Tr.Get("Run `git lfs install --force` to reset Git configuration.")) |
| 27 | os.Exit(2) |
| 28 | } |
| 29 | |
| 30 | if !skipRepoInstall && (localInstall || worktreeInstall || cfg.InRepo()) { |
| 31 | installHooksCommand(cmd, args) |
| 32 | } |
| 33 | |
| 34 | Print(tr.Tr.Get("Git LFS initialized.")) |
| 35 | } |
| 36 | |
| 37 | func cmdInstallOptions() *lfs.FilterOptions { |
| 38 | requireGitVersion() |
nothing calls this directly
no test coverage detected