We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a5ab8 commit 45b65ffCopy full SHA for 45b65ff
R/git-default-branch.R
@@ -522,10 +522,10 @@ challenge_non_default_branch <- function(details = "Are you sure you want to pro
522
if (ui_nope("
523
Current branch ({ui_value(actual)}) is not repo's default \\
524
branch ({ui_value(default_branch)}).{details}")) {
525
- ui_oops("Cancelling.")
526
- return(invisible())
+ ui_stop("Cancelling. Not on desired branch.")
527
}
528
+ invisible()
529
530
531
report_fishy_files <- function(old_name = "master", new_name = "main") {
0 commit comments