func FetchCommand(runtime *program.SubRuntime) (retval int, err string) {
	root := runtime.Root

	// find all the repos
	rs := repos.Repos(root, runtime.For)
	hasError := false

	// and fetch them
	for _, repo := range rs {
		fmt.Printf("Fetching %q\n", repo)
		if e := git.Default.Fetch(repo); e != nil {
			fmt.Fprintln(os.Stderr, e.Error())
			hasError = true
		}
	}

	// if we had an error, indicate that to the user
	if hasError {
		retval = constants.ErrorCodeCustom
	}

	// and finish
	return
}
// FetchCommand is the entry point for the fetch command
FetchCommand is the entry point for the fetch command
// FetchCommand is the entry point for the fetch command
func FetchCommand(runtime *program.SubRuntime) (retval int, err string) {
	root := runtime.Root
	rs := repos.Repos(root, runtime.For)
	hasError := false
	for _, repo := range rs {
		fmt.Printf("Fetching %q\n", repo)
		if e := git.Default.Fetch(repo); e != nil {
			fmt.Fprintln(os.Stderr, e.Error())
			hasError = true
		}
	}
	if hasError {
		retval = constants.ErrorCodeCustom
	}
	return
}
func FetchCommand ( runtime * program . SubRuntime ) ( retval int , err string ) { root := runtime . Root rs := repos . Repos ( root , runtime . For ) hasError := false for _ , repo := range rs { fmt . Printf ( " \n " , repo ) if e := git . Default . Fetch ( repo ) ; e != nil { fmt . Fprintln ( os . Stderr , e . Error ( ) ) hasError = true } } if hasError { retval = constants . ErrorCodeCustom } return }
FetchCommand is the entry point for the fetch command
FetchCommand is the entry point for the fetch command
// find all the repos // and fetch them // if we had an error, indicate that to the user // and finish