Giter VIP home page Giter VIP logo

Comments (5)

dirk-thomas avatar dirk-thomas commented on August 22, 2024 1

By default vcs runs concurrent commands for all repositories therefore it can't use stdin / a prompt "that actually works".

Have you tried to operate on the repositories sequentially with the option -w 1?

from vcstool.

icolwell-as avatar icolwell-as commented on August 22, 2024

Thanks for the fast response! the -w option works great for my purposes!
I didn't know -w existed, for anyone else who may be curious it's shown in vcs import --help:

-w N, --workers N  Number of parallel worker threads (default: 12)

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

Add an arg to auto-accept the connection

Can you please verify on which native command (git clone?) you get the error message with the prompt to confirm the connection? And then check if it offers an option to automatically except the question.

from vcstool.

icolwell-as avatar icolwell-as commented on August 22, 2024

It was a git clone via ssh indeed. I believe the issue is more with ssh than git, since it's an ssh connection issue. I briefly looked over git clone --help but it doesn't mention anything about managing this ssh connection.

Maybe a better possible solution is to pre-check all the ssh urls in the .repos file and do a quick test connection to each unique host before running the git clones in parallel.
This command could work as a way to bring up the prompt if the host is not in known_hosts, but otherwise do nothing.

ssh -T [email protected] &> /dev/null

from vcstool.

dirk-thomas avatar dirk-thomas commented on August 22, 2024

See #113 for a workaround. Please try the proposed change and comment if that works for your use case.

from vcstool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.