Skip to content
\n

It shows this error -

\n
Cmd('gh') failed due to: exit code(1)\n  cmdline: gh auth login --with-token <ghKeysconfig\n  stderr: 'accepts 0 arg(s), received 1' \n
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

It's not easly possible to pass standard input, i.e. the <ghKeysconfig part via the git command in GitPython.

\n

Instead I recommend using a standard Popen call to wire up standard input to pass the contents of the token file to the gh process.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1421#discussioncomment-2489180"}}}

Execute function returns stderr for command line file read. #1421

Answered by Byron
joydeba asked this question in Q&A
Discussion options

You must be logged in to vote

It's not easly possible to pass standard input, i.e. the <ghKeysconfig part via the git command in GitPython.

Instead I recommend using a standard Popen call to wire up standard input to pass the contents of the token file to the gh process.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@joydeba
Comment options

@Byron
Comment options

Byron Apr 2, 2022
Maintainer

@joydeba
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1420 on April 02, 2022 00:10.