in helpers/foundation-deployer/utils/git.go [49:58]
func (g GitRepo) HasUpstream(branch, remote string) (bool, error) {
s, err := g.conf.RunCmdE("status", "-sb")
if err != nil {
return false, err
}
if strings.Contains(s, fmt.Sprintf("## %s...%s/%s", branch, remote, branch)) {
return true, nil
}
return false, nil
}