Comments (4)
The --force
option is only relevant if the new repository URL is different than the already checked out one. In that case --force
will first wipe the existing working copy and the following clone should work the same way as a fresh import
. If the remote URL is different and you don't pass --force
you should see the following error message for that repo:
Path already exists and contains a different repository
In the case where the repository with the same URL is already cloned without the --recursive
option and a second import
with --recursive
is invoked the recursive option is currently indeed not being taken into account. Please give #87 a try and comment if it works for you.
from vcstool.
Indeed, I got the Path already exists ...
error and ran vcs import < repo.yml --force
initially without the --recursive
option. Using the --recursive
option afterwards did not clone recursively.
The correct way would be to initially select both options: vcs import < repo.yml --force --recursive
I checked our your PR branch via:
pip install git+https://github.com/dirk-thomas/vcstool.git@recursive_import_existing_wc
and it solves the issue. I.e. I am able to use the --recursive
option after the the repo has already been checked out.
Thanks.
from vcstool.
Thanks for trying it.
The patch will be available in the soon-to-be released version 0.1.40.
from vcstool.
Thanks for quickly responding with a solution to my issue :-)
from vcstool.
Related Issues (20)
- submodules usage w/o .gitmodules file HOT 1
- "vcs pull" gets stuck indefinitely
- [feature] option to use hash attached to the relative path instead of the version field
- [feature] self checkout from a branch
- Could not checkout ref '...': fatal: invalid reference HOT 1
- startup time is very long HOT 1
- bad non-descriptive error message 'NoneType' object is not subscriptable HOT 1
- git: vcs import by hash does not work for hashes not in local history HOT 1
- Input data is not valid yaml format: mapping values are not allowed here HOT 5
- [Feature Request] version by author or commit date-time HOT 5
- Import non git tars
- VCS Tool is occasionally causing ssh key errors on enterprise git server HOT 4
- vcs export exits with error if there are local branches that don't track remote branches
- Ignore self signed cert for a specific repository HOT 4
- DeprecationWarning: pkg_resources is deprecated as an API HOT 1
- [feature] Ability to only show errors
- validate fails with commit hash HOT 3
- vcs export --exact-with-tags output fails pre-commit linting rules
- BUG: VCS status does not indicate problems if a tag was force-pushed HOT 4
- updating the workspace based on updated repo file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcstool.