pantheon-systems / localdev-issues

Issue tracking for Pantheon localdev
6 stars 2 forks source link

untracked working tree files would be overwritten by checkout #114

Open joe-westcott opened 2 years ago

joe-westcott commented 2 years ago

Hi folks, I'm having a problem with Localdev where if I try to pull a particular multidev environment to local, it fails with this error:

“The following untracked working tree files would be overwritten by checkout: wp-content/plugins/google-site-kit/third-party…”

Even if I change the local directory to something completely new -- a new, empty directory -- this error occurs again.

I can consistently recreate the problem if I open Localdev, select my "maintenance" multidev env, and select ‘Pull for local development’. The process seems to proceed as usual, and fails after some time with the "untracked working tree files" error listed above.

I don't understand why Localdev believes that I have untracked working tree files if I'm pulling code into an empty directory. I've also made sure to completely delete the local directory that first had the problem, and it's made no difference.

If I go into the terminal after this error appears in Localdev, and I run 'git status' from the local directory in question, there doesn't seem to be a problem. All I see is this:

On branch master Your branch is up to date with ‘origin/master’.

nothing to commit, working tree clean

joe-westcott commented 2 years ago

This problem occurs on Localdev version 1.1.0

This problem is specific to only one of my multidev environments. Other envs do not have a problem.

If I re-sync the list of sites in Localdev, delete the local directory, and try again, it makes no difference.

bmarshall511 commented 1 year ago

Having the exact same issue here.

Screen Shot 2022-09-23 at 8 37 33 AM
bmarshall511 commented 1 year ago

Found what my issue was, the repo contained a .lando.yml file and since localdev needs to create one, it wasn't able to. Removing it from the repo resolved the problem.