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

got update without existing repo fails with "fatal: destination path '.' already exists and is not an empty directory." #75

Open
perigrin opened this issue Jun 20, 2024 · 0 comments · May be fixed by #77

Comments

@perigrin
Copy link
Contributor

I've been using App::GitGot to manage my development directory across machines and moving to a new(ish) box I ran "got update" to pull down all the repos and got the above error.

I fixed it by changing _get_clone_or_callback in App::GitGot::Commands to not create the directory before trying to clone and passing $entry->path as the second parameter to $entry->clone() … but I'm not sure that's the best solution overall.

genehack added a commit that referenced this issue Jul 30, 2024
...and let Git do most of the work instead of trying to out-think it.
genehack added a commit that referenced this issue Jul 30, 2024
genehack added a commit that referenced this issue Jul 30, 2024
@genehack genehack linked a pull request Jul 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant