(cmd *cobra.Command, args []string)
| 17 | ) |
| 18 | |
| 19 | func pullCommand(cmd *cobra.Command, args []string) { |
| 20 | requireGitVersion() |
| 21 | setupRepository() |
| 22 | |
| 23 | if len(args) > 0 { |
| 24 | // Remote is first arg |
| 25 | if err := cfg.SetValidRemote(args[0]); err != nil { |
| 26 | Exit(tr.Tr.Get("Invalid remote name %q: %s", args[0], err)) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | includeArg, excludeArg := getIncludeExcludeArgs(cmd) |
| 31 | filter := buildFilepathFilter(cfg, includeArg, excludeArg, true) |
| 32 | pull(filter) |
| 33 | } |
| 34 | |
| 35 | func pull(filter *filepathfilter.Filter) { |
| 36 | ref, err := git.CurrentRef() |
nothing calls this directly
no test coverage detected