Skip to content

Conversation

@Melkiades
Copy link
Collaborator

@Melkiades Melkiades commented Aug 10, 2023

Implements #184

This is very preliminary

@Melkiades Melkiades added the enhancement New feature or request label Aug 10, 2023
Comment on lines +7 to +13
# Helper function copied from fs internals
is_windows <- function() {
if (isTRUE(Sys.getenv("FS_IS_WINDOWS", "FALSE") == "TRUE")) {
return(TRUE)
}
tolower(Sys.info()[["sysname"]]) == "windows"
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This in theory could check if on windows to solve #177

git2r::branch_delete(local_branch)
rm(local_branch, remote_branch)

# todo: on.exit if unsuccessful
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is anyway an error handling, I think it is fine w/o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants