Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: cannot type the passphrase for the ssh key when i git push #369

Closed
banoni-dev opened this issue Jul 23, 2024 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@banoni-dev
Copy link

Opencommit Version

3.0.16

Node Version

20.15.1

NPM Version

10.7.0

What OS are you seeing the problem on?

Other Linux Distro

What happened?

after generating the commit message and accepting it. it asks for pushing but i am using ssh key so i should type the passphrase but i can't

image

Expected Behavior

hwn i choose to push the cli asks for the passphrase and i can type it

Current Behavior

it shows the msg to type the passphrase but nothing is typed

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

@banoni-dev banoni-dev added the bug Something isn't working label Jul 23, 2024
@matscube
Copy link
Contributor

@banoni-dev
Hi,
Maybe this isn't the answer you expected, but you can skip the git-push step by using the OCO_GITPUSH environment variable.
If you set OCO_GITPUSH to false, the oco CLI will not automatically push your branch after generating the commit.

# ~/.opencommit

OCO_GITPUSH=false

@di-sukharev
Copy link
Owner

@matscube hi, thank you for the help. I think what we need is to pipe stdout into the cli logs somehow, if you have any ideas — please share in this thread <3

@matscube
Copy link
Contributor

@di-sukharev Hi,
By using the stdin option of execa, it might be possible to input the SSH key password during the git push process of oco and pipe it to the git command.

However, if users cache the password with ssh-agent, they won't be prompted for a password during git push.
This issue could be addressed by caching the password in advance using ssh-add.

The use case for piping password input via stdin might be limited, but if there's demand, I can look into implementing this feature. What do you think?

@di-sukharev
Copy link
Owner

di-sukharev commented Aug 20, 2024 via email

@di-sukharev
Copy link
Owner

@banoni-dev please refer to this comment #369 (comment) as a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants