Skip to content
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

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Specifically handle offline case in pr_init() #2063

merged 4 commits into from
Oct 2, 2024

Conversation

hadley
Copy link
Member

@hadley hadley commented Sep 20, 2024

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.

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(
Copy link
Member Author

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

Copy link
Member

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.

Copy link
Member Author

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(
Copy link
Member

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.

@hadley hadley merged commit b4e8477 into main Oct 2, 2024
13 of 14 checks passed
@hadley hadley deleted the offline-pr_init branch October 2, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants