git-subrepo icon indicating copy to clipboard operation
git-subrepo copied to clipboard

git subrepo clone "--force" doesn't work

Open dhuantes opened this issue 8 years ago • 6 comments

I have an existing subfolder let's say MyLibrary in another SuperProject. MyLibrary is a standalone repository but it wasn't created as a subrepo within SuperProject. I would like to overwrite the existing MyLibrary as a subrepo. Without --force it indicates:

git-subrepo: The subdir 'MyLibrary' exists and is not empty

I read the documentation and expected if I used the --force option that it would overwrite the existing subfolder but I still get:

git-subrepo: The subdir 'MyLibrary' exists and is not empty

The command I am using is:

git subrepo clone <repo_url> --force

I've tried moving the --force before the url and before the clone command but I get the same results. I am on the current release/0.4.0 branch of git-subrepo. Thanks for your assistance.

dhuantes avatar Oct 25 '17 14:10 dhuantes