You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.StringVar(&o.centralRef, "central-ref", "origin/master", "Git ref for the central branch that will be updated, used as the base for determining what commits need to be cherry-picked.")
82
+
fs.StringVar(&o.fetchMode, "fetch-mode", string(ssh), "Method to use for fetching from git remotes.")
74
83
75
84
fs.BoolVar(&o.dryRun, "dry-run", true, "Whether to actually create the pull request with github client")
76
85
fs.StringVar(&o.githubLogin, "github-login", githubLogin, "The GitHub username to use.")
@@ -93,6 +102,12 @@ func (o *options) Validate() error {
93
102
returnfmt.Errorf("--mode must be one of %v", []mode{summarize, synchronize})
94
103
}
95
104
105
+
switchfetchMode(o.fetchMode) {
106
+
casessh, https:
107
+
default:
108
+
returnfmt.Errorf("--fetch-mode must be one of %v", []fetchMode{https, ssh})
0 commit comments