-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifically handle offline case in pr_init()
#2063
Conversation
I realised that we're checking whether or not the host is online further down, so we might as well use that a little earlier to give a more informative message.
@@ -213,10 +224,6 @@ pr_init <- function(branch) { | |||
ui_bullets(c("v" = "Pulling changes from {.val {remref}}.")) | |||
git_pull(remref = remref, verbose = FALSE) | |||
} | |||
} else { | |||
ui_bullets(c( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already warned that we can't do this above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't actually warn about this, i.e. that we can't make sure the base branch is current. So we could add something around line 175. Or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, tweaked that message a little bit.
@@ -213,10 +224,6 @@ pr_init <- function(branch) { | |||
ui_bullets(c("v" = "Pulling changes from {.val {remref}}.")) | |||
git_pull(remref = remref, verbose = FALSE) | |||
} | |||
} else { | |||
ui_bullets(c( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't actually warn about this, i.e. that we can't make sure the base branch is current. So we could add something around line 175. Or not.
I realised that we're checking whether or not the host is online further down, so we might as well use that a little earlier to give a more informative message.