Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Non-interactive installation prompts for git password #1009

Copy link
Copy link
Closed
@kornelski

Description

@kornelski
Issue body actions
$ node
> require('bower').commands.install(['https://github.com/examplebrokenurl/doesnotexist.git'], {}, {interactive:false});
{ _interceptors: [], _piped: [] }
> Username for 'https://github.com':

The git child process can show its own interactive prompt at any time (e.g. git interprets 404 on github as authentication error and wants to retry with a password).

To prevent this you can run git with:

 git -c core.askpass=true …

true here is not a boolean value, but a command /bin/true that will make git think it asked for a password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.