esrlabs / git-repo

repo - The multiple repository tool (also works on MS Windows!)
https://code.google.com/p/git-repo/
Apache License 2.0
436 stars 145 forks source link

error.GitError: --force-sync not enabled; cannot overwrite a local work tree. #57

Open DKLind opened 7 years ago

DKLind commented 7 years ago

Following 'repo init', all repositories have detached heads. I'm getting this error when ever I checkout a remote branch from a repository, followed by 'repo sync'. I have git version 2.11.1.windows.1 installed.

eddyp commented 7 years ago

@DKLind Can you check that with the fix in #58 things are OK for you?

I am almost 100% mine is not the right fix, but in my case it worked around the issue decently enough.