(configuration config.Configuration)
| 776 | } |
| 777 | |
| 778 | func startNewMobSession(configuration config.Configuration) { |
| 779 | currentBaseBranch, currentWipBranch := determineBranches(gitCurrentBranch(), gitBranches(), configuration) |
| 780 | |
| 781 | say.Info("starting new session from " + currentBaseBranch.remote(configuration).String()) |
| 782 | git("checkout", "-B", currentWipBranch.Name, currentBaseBranch.remote(configuration).Name) |
| 783 | gitWithoutEmptyStrings(append(gitPushArgs(configuration), gitHooksOption(configuration), "--set-upstream", configuration.RemoteName, currentWipBranch.Name+":"+currentWipBranch.Name)...) |
| 784 | } |
| 785 | |
| 786 | func gitPushArgs(c config.Configuration) []string { |
| 787 | pushArgs := []string{"push"} |
no test coverage detected