We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f3b0cc commit 40f801dCopy full SHA for 40f801d
cmd/commands/repo.go
@@ -146,7 +146,14 @@ func NewRepoBootstrapCommand() *cobra.Command {
146
147
<BIN> repo bootstrap --repo https://github.com/example/repo/path/to/installation_root
148
`),
149
- PreRun: func(_ *cobra.Command, _ []string) { cloneOpts.Parse() },
+ PreRun: func(_ *cobra.Command, _ []string) {
150
+ cloneOpts.Parse()
151
+ if recover {
152
+ // in recover mode we don't want to commit anything
153
+ cloneOpts.CloneForWrite = false
154
+ cloneOpts.CreateIfNotExist = false
155
+ }
156
+ },
157
RunE: func(cmd *cobra.Command, args []string) error {
158
return RunRepoBootstrap(cmd.Context(), &RepoBootstrapOptions{
159
AppSpecifier: appSpecifier,
0 commit comments