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

create_from_github(fork = TRUE) erroring because upstream is already set #2061

Open
jennybc opened this issue Sep 19, 2024 · 1 comment
Open
Labels
bug an unexpected problem or unintended behavior git git, GitHub, and CI in general

Comments

@jennybc
Copy link
Member

jennybc commented Sep 19, 2024

Not sure why this suddenly started to happen, but when I get here, upstream is somehow already configured 🤔 And since we haven't set overwrite to TRUE, we error.

usethis/R/git.R

Line 258 in 2cc9e5a

if (name %in% names(remotes) && !overwrite) {

Called from

use_git_remote("upstream", upstream_url)

@jennybc jennybc added bug an unexpected problem or unintended behavior git git, GitHub, and CI in general labels Sep 19, 2024
@jennybc
Copy link
Member Author

jennybc commented Sep 19, 2024

It feels like gert::git_clone() is setting both origin and upstream?

gert::git_clone(origin_url, repo_path, verbose = FALSE)

Is this some new behaviour in gert?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior git git, GitHub, and CI in general
Projects
None yet
Development

No branches or pull requests

1 participant