app-gitgot icon indicating copy to clipboard operation
app-gitgot copied to clipboard

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

Open perigrin opened this issue 1 year ago • 0 comments

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.

perigrin avatar Jun 20 '24 01:06 perigrin